public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
// 入力フォームを取得
DynaActionForm inform = (DynaActionForm)form;
// UserDataの設定
UserData userData = new UserData();
userData.set("UserId","id01");
userData.set("UserName","name01");
// フォームに設定する
inform.set("userData",userData);
return mapping.findForward("success");
}
|