Hello,

You can save your error messages with a diffent error key than the
information messages.

Here's a short example :


In your java :
                ActionErrors errors = new ActionErrors();

                errors.add (KEY_ERROR_MESSAGES, new ActionError("your message key"));
                errors.add (KEY_INFOS_MESSAGES, new ActionErrors("your message key"));

In your JSP :

<font color="#FF0000">
<html:errors key="class.KEY_ERROR_MESSAGES" />
</font>
<font color="#00FF00">
<html:errors key="class.KEY_INFOS_MESSAGES" />
</font>


I think that it could work


Nicolas

-----Original Message-----
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: jeudi 30 janvier 2003 23:02
To: [EMAIL PROTECTED]
Subject: Disply messages in different colors on jsp


Hi,

In my application some messages are error and some are
information, i want to show error messages in red and
information messages in blue,
so how can i do it??
 can i store them both in one ActionErrors class and
in jsp have some thing to show in different colors or
have 2 different ActionErrors  one for error and other
for information
Any help is appreciated


=====
A$HI$H

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
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