aspose file tools*
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 Spring in Action this week in the Spring 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