I think (sorry if I am wrong or give a bad suggestion) that you can have a pair (boolean - field) in your form. And in your ActionForm set this boolean to true if an error occurs. Then in your jsp file test this boolean for "true" value. If so - display some image before your field (or you can change a color for the field). Adjust your fields so, then enough space will be for the image.

Maya

Padma Ginnaram wrote:

 I need to put the indicator right next to the field(s) that result in error. As Hal explains in his response that the error description can be displayed using the property name corresponding to the field. Instead of displaying the error description I need to conditionally display an image or highlight the field in some way if an error exists corresponding to that field's property.Appreciate your help.
-----Original Message-----
From: Maya Muchnik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 12:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Using ActionErrors
 
Padma,

Can you be more specific? Do you need to display an error corresponding a label to the field, or you need to display a field number ? I think, struts-example shows how to display a field label together with its error. And all errors are displayed on the top of the page. Do you need something different?

Maya

Padma Ginnaram wrote:

I need to display an indicator for the fields that result in error and display all the errors on the top of the page. Using the error tag I can display all the errors at one location, but I am not able to figure out how to display the indicator. Any suggestions?
-----Original Message-----
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 5:07 PM
To: [EMAIL PROTECTED]
Subject: RE: Using ActionErrors
 
I haven't tried it but I thought that you could specify the property attribute on the errors tag and it would pull out the error that has that property. When you add to the ActionErrors object the property is the first argument. You should probably use the property name that cooresponds to the property of the form field. -----Original Message-----
From: David J Snowsill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:31 PM
To: [EMAIL PROTECTED]
Subject: Using ActionErrors
 
Can anybody point me in the right direction on how to associate a particular error with a particular input field in a form Thanks David J Snowsill
Principal Consultant
Calibre Financial Technology
[EMAIL PROTECTED]
Office: (61-2) 9212 0527
Mobile: 0403 091 468 *******************************************
This E-mail is intended only for the use of the individual or entity named
above and may contain information that is confidential and privileged.
 If you are not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this E-mail is strictly prohibited.
 If you have received this E-mail in error, please notify us immediately
by return e-mail to the sender or by telephoning one of our staff on (61-2)
9212 0527.  Please then destroy any copies of the original message that
are in your possession. Thank you.
*******************************************

Reply via email to