• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help please-Exception thrown by the execute method

 
sree visu
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why aren't you using the Struts form tags?
 
sree visu
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you access the form page through an action?

(btw, your "reset" method is named "Reset", which probably won't work.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic