aspose file tools*
The moose likes Struts and the fly likes Unspecified method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unspecified method" Watch "Unspecified method" New topic
Author

Unspecified method

Gran Roguismo
Ranch Hand

Joined: Mar 10, 2005
Posts: 77
I don't know how many people are doing struts here, but I am having problems with an action using LookupDispatchAction

LookupDispatchAction requires that you have a map of values which will delegate the action out to a different method based on a string value passed in (in this case called method as well)



I would then have a method:


that's all working fine, but for the initial page I'm not going to it via a form and I don't wish to specify method in the url:

so I've included a unspecified parameter:


where view is set in the struts-config

that works, but only halfway. Now I can say

but I want it to be


every time I just put that in I get

javax.servlet.ServletException: Request[/V3] does not contain handler parameter named method
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:199)
com.webpage.struts.action.BaseAction.execute(BaseAction.java:57)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


help is very much appreciated


EOL
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unspecified method