public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
// 入力フォームを取得
DynaActionForm inform = (DynaActionForm)form;
// Stringデータの取得
String stringData = (String)inform.get("stringData");
System.out.println("stringData(" + stringData + ")");
// intデータの取得
Integer intData = (Integer)inform.get("intData");
System.out.println("intData(" + intData + ")");
// Integerデータの取得
Integer integerData = (Integer)inform.get("integerData");
System.out.println("integerData(" + integerData + ")");
// booleanデータの取得
Boolean boolData = (Boolean)inform.get("boolData");
System.out.println("booleanData(" + boolData + ")");
// Booleanデータの取得
Boolean booleanData = (Boolean)inform.get("booleanData");
System.out.println("booleanData(" + booleanData + ")");
return mapping.findForward("success");
}
|