hi;

While you are generating your action messages you can use a format which is specified 
in your message resource file. 

Simple usage:
...
msg = new ActionMessage("<<your key in message resources file>>", "stop");
messages.add("message2", msg)
...

and in jsp use:

<html:messages id="msg" message="true">
<bean:write name="msg"/><br>
</html:messages>

which writes all the messages

Detailed example can be found at:
http://javaboutique.internet.com/tutorials/excep_struts/index-2.html

Erdem

-----Original Message-----
From: Suresh S [mailto:[EMAIL PROTECTED]
Sent: Fri 7/30/2004 10:38 AM
To: Struts Users Mailing List
Subject: Indentation using html:messages tag
 
hi friends,

I have a problem in displaying validation messages in using <html:
messages>  tag can some one help me on this? this is the problem i need
to display the validation messages in following format.

 Title 1
  * error1
  * error 2
 Title 2
   * error1
   * error2
  ....

 Title n
   * error1
   * error2
 

The problem here is all the contents are dynamic including the title
name . Thanks in advance for your suggestions.Pls reply asap 

Thanx
Suresh S





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to