This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes LookupDispatchAction: missing resource in key method map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "LookupDispatchAction: missing resource in key method map" Watch "LookupDispatchAction: missing resource in key method map" New topic
Author

LookupDispatchAction: missing resource in key method map

Henry Lowell
Ranch Hand

Joined: May 29, 2006
Posts: 63
I can't seem to figure out what the problem is. Now, before when I had the class just extend Action, everything worked. But now that I need LookupDispatchAction, I am getting this error:


javax.servlet.ServletException: Action[/AddUser] missing resource in key method map
org.apache.struts.actions.LookupDispatchAction.getLookupMapName(LookupDispatchAction.java:230)
org.apache.struts.actions.LookupDispatchAction.getMethodName(LookupDispatchAction.java:271)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:173)
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:150)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


The properties file for the resources are fine because other pages work just fine. Any help is apprecaited. I am sure it is something silly.

Resources:
adduser.button.save=Save
adduser.button.delete=Delete

fragment of AddUser extends LookupDispatchAction


fragment of JSP


fragment from struts-config


Hank
Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336
Do you have methods named "save" and "delete" in your Action classes?
eg.


Also, have you defined the property "dispatch" in your ActionForm?(I dont think this would be the problem though)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LookupDispatchAction: missing resource in key method map
 
Similar Threads
internal error: (No action instance for path /lookup could be created)
LookupDispatchAction - Missing message
Question on LookupDispatchAction
InvalidCancelException in Struts 1.1
LookupDispatchAction Query