This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to find out which form generated errors ?

 
Sreedevi Vinod
Ranch Hand
Posts: 117
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much for the link. My problem is solved.

-Devi
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic