MyLookupDispatchActionpublic class MyLookupDispatchAction extends org.apache.struts.actions.LookupDispatchAction
Constructors Summary |
---|
public MyLookupDispatchAction()
keyMethodMap = new HashMap();
keyMethodMap.put("button.add", "create");
keyMethodMap.put("button.edit", "update");
keyMethodMap.put("button.remove", "delete");
keyMethodMap.put("button.touch", "touch");
|
Methods Summary |
---|
public org.apache.struts.action.ActionForward | create(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request.setAttribute("dispatchedTo","create");
return mapping.findForward("success");
| public org.apache.struts.action.ActionForward | delete(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request.setAttribute("dispatchedTo","delete");
return mapping.findForward("success");
| protected java.util.Map | getKeyMethodMap()
return keyMethodMap;
| public org.apache.struts.action.ActionForward | touch(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request.setAttribute("dispatchedTo","touch");
return mapping.findForward("success");
| public org.apache.struts.action.ActionForward | update(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request.setAttribute("dispatchedTo","update");
return mapping.findForward("success");
|
|