This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and validator" Watch "struts and validator" New topic

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).
Rick Hightower
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: struts and validator
Similar Threads
struts validator
Have any problem using validator
struts1 application: error in struts-config.xml
Question on validation
struts validator and tiles