I know you mentioned it but I would suggest that the simplest method is to
override the simple theme error tag template filederror.ftl and create a
base that you're happy with. You then have something that is independent of
the core libraries and can easily modify later.

I've had to do this for a number of the simple themed templates and it works
well. 

My only issue is that I'm not a huge fan of freemarker and would prefer to
have the templates in jstl or velocity (There's only so much room in my
little skull)

Z.

> Hi,
> 
> 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="myBean.name" value="" id="name"/>
> <span class="myErrorClass">An Error Message</span>
> 
> Many thanks!
> Martin
> 
> 
> 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: [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