Sorry, I'm not at my home box and I'm also in a hurry or I would have a better 
answer.

I have always done this the hard way -- using a logic:messagesPresent switch 
beside each field, seeing if a message for that particular property is present, 
highlighting if it is. It does work but it's a lot of typing. In the archives, 
I would say within the last year but perhaps 18 months, is a discussion between 
me and Joe G. about this with code examples. Sorry, I can't remember the thread 
name!

However, I thought I overheard Niall talking about a 1.2.6 addition that 
encapsulated all this in a tag or something?

Erik


-----Original Message-----
From: Scott Purcell <[EMAIL PROTECTED]>
Sent: Jul 8, 2005 2:58 PM
To: user@struts.apache.org
Subject: Validation and Display Question

I am seeking some advice on the following:

I have a site which uses the validator.xml and validation.xml files, and within 
the jsp pages, I am using the <logic tag to display the messages.

All works great, but I want to go further with my validation.  Upon some 
investigating on other sites, I have noticed that some sites will actually 
change the text in front of textfields to a red along with a message about the 
error.

I would like to be able to perform this type of error display, instead of the 
simple message that comes from the html:messages error, which is a list of 
problems.

has anyone seen this done, or have any ideas where to begin with this?

Thanks,
Scott



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to