Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form validate()

 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple form and validate method. The validation works great on a text field. The problem I am having is when validate returns the action error, my form bean is not found on the request. Is this normal behavior. What happens is a logic:equal tag fails since the name attribute is my form bean name, which isn't found. Ideas?
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would have to know a little bit more about your JSP, the exact error that you are getting, your input attribute and what the action that displays the page does to provide much help. If there are values on your form that you are populating in the action that displays the page then you might need to have your input point at an action that can do the same thing (or you can store them as hidden fields on your jsp).

- Brent
 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Brent, I did a complete rebuild this morning and now it works. Not sure what happened, maybe JSP caching.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic