This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes struts and validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and validator" Watch "struts and validator" New topic
Author

struts and validator

karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
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

Joined: Feb 20, 2002
Posts: 350
<html:messages id="error" property="nameOfField"/>
The above will only get the messages for the field called nameOfField instead of all of the errors.


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
GeeCON Prague 2014
 
subject: struts and validator