File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Struts Validator Messages Property
Joined: Jul 21, 2009
Jul 21, 2009 14:02:45
I have a
with three types of messages: warn, errors and messages of validator framework of
All have custom css and, as far I searched, the only way to show Validator messages is:
Even using ActionMessages.GLOBAL_MESSAGE as property attribute of html:errors tag, show anything:
So, when I have others messages, it shows twice: in proper place and the one for validator messages.
Is there a way to set a property for validator messages as for the others ones like below:
ActionMessages error = new ActionMessages(); error.add("warnings", new ActionMessage("error.key")); saveErrors(request, error);
Thanks in advance
I agree. Here's the link:
subject: Struts Validator Messages Property
Checking for an ActionMessage in the JSP
Where should I perform validation with database connectivity?
Error Message Not Displaying on JSP(URGENT)
Handling Messages (v1.2.9)
How to ActionErrors and ActionError
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014