FileDocCategorySizeDatePackage
SaveGangsterAction.javaAPI DocApache Struts 2.0.9 Apps2168Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.integration

SaveGangsterAction

public class SaveGangsterAction extends org.apache.struts.action.Action

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


        // Some code to save the gangster to the db as necessary
        GangsterForm gform = (GangsterForm) form;
        ActionMessages messages = new ActionMessages();
        messages.add("msg", new ActionMessage("Gangster "+gform.getName()+" added successfully"));
        addMessages(request, messages);

        return mapping.findForward("success");