| 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.
|
 |
 |
|
|
subject: DispatchAction not working as desired
|
|
|