Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts : LookupDispatchAction

843838May 3 2006 — edited May 4 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2006
Added on May 3 2006
3 comments
273 views