Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find out which form generated errors ?

 
Sreedevi Vinod
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a login form and a registration form on the same JSP page. I have server side validations attached to both. I'm using <html:errors> tag to print out the validation errors. I want the validation errors returned by the login form to appear in the area above it, and those returned by the registration form to appear above it. When I use <html:errors> at both places, the same errors are printed at both places when any one form fails validation. How can I write code to detect which form caused the error, so that the errors appear only at the right place ?

Thanks
Devi
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the section entitled "Displaying Messages" in this link.
 
Sreedevi Vinod
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much for the link. My problem is solved.

-Devi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic