FileDocCategorySizeDatePackage
StrutsAction.javaAPI DocExample1256Wed Oct 22 10:13:18 BST 2003actions

DummyAction

public class DummyAction extends Action
Dummy Action.

Fields Summary
Constructors Summary
Methods Summary
public ActionForwardexecute(ActionMapping mapping, ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)


		ServletContext application = getServlet().getServletContext();
		HttpSession session = request.getSession();

		ActionErrors errors = new ActionErrors();
		ActionMessages messages = new ActionMessages();

        // if (!(form instanceof DynaActionForm)) {
		// 	throw new IllegalArgumentException( /* "can't happen" */
		// 		"Input form not a valid DynaForm, configuration error?");
		// }
		// DynaActionForm theForm = (DynaActionForm)form;

		// if (success) {
		// 	messages.add(ActionErrors.GLOBAL_MESSAGE,
		// 		new ActionMessage("success.added.member", member.getName()));
		// 	saveMessages(request, messages);
		// }

		// if (failure) {
		// 	errors.add(ActionErrors.GLOBAL_ERROR,
		// 		new ActionError("error.insert", p.getTitle()));
		// 	saveErrors(request, errors);
		// 	return new ActionForward(mapping.getInput());
		// }

		return mapping.findForward("notwrittenyet");