Hi all,
I have a JSP, in which there are 3 submit buttons. so that i decided to have a LookupDispatchAction. But Before the page( say abc.jsp) loading, i need to execute some action from its ActionClass( abcAction) . the parameter i mentioned for this in struts-config.xml is "method".
i tried by calling
http://localhost:8080/abcpro/abcAction.do?method="default"
but getting the following error.
javax.servlet.ServletException: Action[abcAction] missing resource 'default' in key method map
i have mentioned this 'default' in ApplicationResources.properties.
and also i put this value in Map of
protected Map getKeyMethodMap()
like
map.put("abcpro.lookup.dispatch.action","defaultaction");
and i have written a method like
public ActionForward defaultaction(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
{
return mapping.findForward("ownpage");
}
How can i solve this?
Thanks in advn.
Student