Hi,

I think you have to change the actionerror.ftl and actionmessage.ftl file to customize the error/message display. i am not sure there may be some other way to do this also.

Thanks,

Nuwan

Bhuwan wrote:
Hey! I am having the same issue. Have you found out a solution for it by any chance?

Your help is greatly appreciated.

Bhuwan.


M.Liang Liu wrote:
Hi,all:
I would like to add header and footer to the actionerrors so as to it can
display in the way my client like.
In Struts1.2,i can just put the following code in the properties file:
----------------------------------------------------------------------------------------------------
errors.header=<table class="warning"><tr><td>
errors.prefix=<li>
errors.suffix=</li>
errors.footer=</td></tr></table>
----------------------------------------------------------------------------------------------------
and it could work as I excepted.
Now i am trying to use struts2,but it can NOT work in the same way.

Any help?


btw,I have put the code in the globalMessages.properties and put the file
in
the classpath,as well as defined the struts.xml as:
<constant name="struts.custom.i18n.resources" value="globalMessages" />

Thanks for reading and looking forward to any reply.

--
              ------M.Liang Liu





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

Reply via email to