This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes DispatchAction not working as desired Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "DispatchAction not working as desired" Watch "DispatchAction not working as desired" New topic
Author

DispatchAction not working as desired

Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 837
dispatchUserSubmit.jsp




struts-config.xml




UserDispatchAction.java




DispatchUserForm.java



Mappings for ActionServlet are present in web.xml

I am able to see the jsp page and able to submit, but when the request goes to the servlet nothing happens.

I expect success.jsp to be executed. Can you let me know what i am doing wrong ?


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


Amandeep,

Your Action class should be of type "org.apache.struts.actions.DispatchAction" for DispatchAction to work.
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 837
thanks Balu, it worked.


can anyone just describe the flow of struts here, i read in book, it was not enough for me to understand.
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874


You are welcome.

Well if the book doesn't help , this sure does.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: DispatchAction not working as desired
 
Similar Threads
Action Form Problem
DispatchAction error .... NoClassDefFoundError...
DynaValidatorActionForm not working
How to get the field details from one jsp page in struts dispatchaction action class
DispatchAction:seems fine, but doesn't work