struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dasgupta, Ranjan" <>
Subject RE: [S2] error style on s:textfield
Date Wed, 30 Jul 2008 19:56:14 GMT
In your action set the fieldError:
addFieldError("someField", "someText")

in your JSP:
<s:textfield name="someField" cssErrorClass="someClass"/> 


-----Original Message-----
From: Pierre Thibaudeau [] 
Sent: Wednesday, July 30, 2008 3:31 PM
To: Struts Users Mailing List
Subject: [S2] error style on s:textfield

In Struts2, what is the equivalent of Struts1's "errorStyleClass"
parameter of <html:text> tag?

In other words, how can I control the CSS style of a <s:textfield> when
there is an error over that field?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message