struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Petzsch, Martin" <>
Subject [S2] Error Message display
Date Tue, 07 Aug 2007 10:50:36 GMT


Short of modifying the template for s:fielderror is there a way to retrieve
just the text of the error message on a JSP?

Even with the theme set to simple I get the following on my jsp:
<ul><li><span class="errorMessage">An Error Message</span></li></ul>

What I want is just the message:
An Error Message

And then I am free to decorate it as I wish.

Equally if you think I am taking the wrong approach to this please let me
know.  The goal is to just display an error message - to the right of the
field and to decorate it with CSS classes of our choice.  Ending up with
something like this:

<input type="text" name="" value="" id="name"/>
<span class="myErrorClass">An Error Message</span>

Many thanks!

Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini
UK plc, a company registered in England and Wales (number 943935) whose registered office
is at No. 1 Forge End, Woking, Surrey, GU21 6DB. 

This message contains information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it is addressed. If you
are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this  message in error,
please notify the sender immediately and delete all  copies of this message.

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

View raw message