• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts calls reset before form is submitted

 
Siva Masilamani
Ranch Hand
Posts: 385
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have a doubt about the reset method when the jsp is called.

Please find my code below.







When i type the url for the jsp page. e.g.http://localhost:8084/TestStrutsCheck/gotoIndex1.jsp

I see the reset method of the form has been called even before the form is submitted and printed out the message.

If it has been called then i think there should be an instance for the form class if so,why is my Logic:present tag fails in that case?(it did not display Hello in the page)

please explain,why struts call reset before displaying jsp?

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts calls "reset" so the form is reset...

You're searching for a bean with a specified name in scope--that's not the name of the action form that's in scope. ActionForms are in scope under whatever key Struts uses to find it (I forget off the top of my head).
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic