This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Help please-Exception thrown by the execute method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help please-Exception thrown by the execute method" Watch "Help please-Exception thrown by the execute method" New topic
Author

Help please-Exception thrown by the execute method

sree visu
Ranch Hand

Joined: Jul 05, 2007
Posts: 133
I don't understand why i get a classcastException when i cast the ActionForm.
I am a newbie to structs and hence i have given all my code except ce
Here is my code



Here is my LoginForm.java



Here is my page where i redirect to this Action Class

I have just added the <form> tag alone



Here is my Web.xml



Here is my structs-config.xml



Regards<br />Sree Visu<br />SCJP 5.0, SCWCD 5.0, SCJD(Preparing B&S 2.2.2)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why aren't you using the Struts form tags?
sree visu
Ranch Hand

Joined: Jul 05, 2007
Posts: 133
This is because i have completely checked for errors at the client side using java script and have validated it.I am using structs to make a the front controller so that the redirection could be easy.So i have not used the validate method too
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Do you access the form page through an action?

(btw, your "reset" method is named "Reset", which probably won't work.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help please-Exception thrown by the execute method
 
Similar Threads
I am unable to resolve the exception
JSP context problem
Kindly help me in fixing the bug . error 404
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsps/ActionForms/Displ
Cannot find ActionMappings or ActionFormBeans collection