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 Dispatch Action Not working 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 "Dispatch Action Not working" Watch "Dispatch Action Not working" New topic
Author

Dispatch Action Not working

Tihor Atpug
Greenhorn

Joined: May 17, 2009
Posts: 3
Hi,

I am using a combination of Struts 1.3 and Spring in my project, I am using Dispatch Action for all my action classes. Lately when I check the logs of the application, I see the following error,


javax.servlet.ServletException: Request[/viewDef] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.


This error doesn't happen all the time for the same action classes and I am getting troubled by this .

Regards,
Rohit
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Welcome to JR !
Your post doesn't provide enough information regarding what exactly happening.
Look here, for what I want to say

How you're accessing the dispatch action, the URL? Provide the struts-config.xml action mapping snippet ?


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Tihor Atpug
Greenhorn

Joined: May 17, 2009
Posts: 3
Hope this helps, this is the whole stack trace..




The struts config mapping


I am trying to access the url directly by typing the address in the browser.

Regards,
Rohit


Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


I am trying to access the url directly by typing the address in the browser.


What is the url you tried ? it should have "method" parameter in query String .something like ?method=xyz
Tihor Atpug
Greenhorn

Joined: May 17, 2009
Posts: 3
Yup.. am accessing the url with all the prameters and no widespace and stuff.. and as I said.. most of the time the url works fine.. just 4-5 times of hundred I get this error.

Regards,
Rohit
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Tihor Atpug wrote:Yup.. am accessing the url with all the prameters and no widespace and stuff..

Then is it possible to you to post the URL ?
Tihor Atpug wrote:and as I said.. most of the time the url works fine.. just 4-5 times of hundred I get this error.

Try logging the URL every time the request comes, so that you can see which particular URL patter throws this exception.

Also some limitations to my knowledge, because I don't know Spring, (no idea of this action "org.springframework.web.struts.DelegatingActionProxy"), so asking this question in Spring forum will help you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dispatch Action Not working
 
Similar Threads
Need Help and Suggestion
Integrating MockStrutsTestCase
Dispatch action parameter does not change
How desc FontController and Dispatcher in component diagram?
FormBean - Hidden variable not set