FileDocCategorySizeDatePackage
MyLookupDispatchAction.javaAPI DocExample1909Sun Jun 27 23:46:28 BST 2004com.oreilly.strutsckbk.ch06

MyLookupDispatchAction

public class MyLookupDispatchAction extends org.apache.struts.actions.LookupDispatchAction

Fields Summary
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.ActionForwardcreate(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.ActionForwarddelete(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.MapgetKeyMethodMap()

		return keyMethodMap;
	
public org.apache.struts.action.ActionForwardtouch(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.ActionForwardupdate(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");