This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Dispatch Error Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dispatch Error Action" Watch "Dispatch Error Action" New topic
Author

Dispatch Error Action

Hari Kiran
Greenhorn

Joined: May 11, 2007
Posts: 3
Hi,

I am getting the following error message when I click on the Button.
Please help me in fixing this issue.


javax.servlet.ServletException: Request[/viewDetails] does not contain handler parameter named 'action'. This may be caused by whitespace in the label text.
org.apache.struts.actions.DispatchAction.unspecified(DispatchAction.java:222)
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:256)
org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

Thanks in advance.

Hari Kiran GM
Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
Please post your struts-config, action, and the request you are making. Too little information provided.
Leandro Melo
Ranch Hand

Joined: Mar 27, 2004
Posts: 401
Hi.

It seems that you specified that action is the name of the method to be called upon the request you made. Probably, in the action responsible for handling request /viewDetails, there's no such method.


Leandro Melo
SCJP 1.4, SCWCD 1.4
 
 
subject: Dispatch Error Action