File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts and validator

 
karl koch
Ranch Hand
Posts: 388
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi struts gurus

i had a look at struts and validator.
if i get the ActionErrors object then how can i find out what input element of the form created the ActionError ? (i want to mark the input element that had wrong input instead of just listing the error(s) above the form).
thanks
karl
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:messages id="error" property="nameOfField"/>
The above will only get the messages for the field called nameOfField instead of all of the errors.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic