You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "marcus biel (innoWake gmbh)" <ma...@innowake.de> on 2006/06/06 17:13:40 UTC

Image change on error

Hi,

when I got a specific error in my form, 
I want to exchange a specific image like an
icon in red representing the field,
and I also want to exchange the css style, so that the
form field gets a red border and / or red background.

Any idea of how to get this done?

I tried:

<logic:messagesPresent message="error.myValue.invalid"><html:img
src="myErrorValue.gif" border="0"/><logic:messagesPresent>

<logic:messagesNotPresent message="error.myValue.invalid"><html:img
src="myValue.gif" border="0"/><logic:messagesNotPresent>

but it didn't work :-(!


Thanks in advance,

Marcus


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org