Re: Retrieving specific form validation error messages

2004-07-29 Thread Kishore Senji
ached. > > > >I also posted an extension to the tag on my web site which > >highlights error fields. > > > >http://www.niallp.pwp.blueyonder.co.uk/#errortag > > > >Niall > > > >- Original Message - > >From: "Erik Weber" <

Re: Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
OTECTED]> Sent: Thursday, July 29, 2004 10:10 AM Subject: Re: Retrieving specific form validation error messages This is what I came up with: . . . render the prompt for currentField, placing where necessary (this could be a css class or font color, etc.) , , , I am doing this for ea

RE: Retrieving specific form validation error messages

2004-07-29 Thread Raghuram Kanadam
Tries, ActionError.properties () Erik? You may need to use a small scriptlet -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 2:40 PM To: Struts Users Mailing List Subject: Re: Retrieving specific form validation error messages This is what I

Re: Retrieving specific form validation error messages

2004-07-29 Thread Niall Pemberton
http://www.niallp.pwp.blueyonder.co.uk/#errortag Niall - Original Message - From: "Erik Weber" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, July 29, 2004 10:10 AM Subject: Re: Retrieving specific form validation error mes

Re: Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
This is what I came up with: . . . render the prompt for currentField, placing where necessary (this could be a css class or font color, etc.) , , , I am doing this for each field. Please let me know if there is a better way. Thanks, Erik Erik Weber wrote: I see that the ActionErrors object

Re: Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
I see that the ActionErrors object is stored as a request attribute under the key "org.apache.struts.action.ERROR". I would like to set a different CSS class for each containing a field that has a property that is keyed in the ActionErrors instance. In pseudocode: begin "username" field; if (

Retrieving specific form validation error messages

2004-07-29 Thread Erik Weber
In a JSP containing a form, what is the easiest way to see if a form validation error message exists for a particular, say, html:text field, when that page is processing after form validation has failed? For example, what if you wanted to present the messages field by field instead of all toget