<ul>
<li>error 1</li>
<li>error 2</li>
</ul>
But sometimes it seems to be very ugly when displaying the dot (.) in the action errors or action messages
Below is a normal code that displays the tags in your customized way.
You can specify your own css for this
<s:if test="hasActionErrors()">Alternatively you can change the file in the "/template/simple/actionerror.ftl” and put it in the /web-directory/struts/simple if using simple theme
<s:iterator value="actionErrors">
<span class="errorMessage"><s:property escape="false" />
</span>
</s:iterator>
</s:if>
Similar for <s:actionmessage /> tag.
Enjoy Struts








10 comments:
Hi ,
im getting blank page if i deployed and executed the first sample,im new to struts2 ,i dont know how to run the sample
Hi Vinod,
This is very useful programming tip. Thank you.
Regards,
Srinivas
Yes it works fine.
Very good idea, I was exactly seeking for the same stuff.
thanks Vinod
10x Vinod :)
THANK YOU SO MUCH!!!
Thanks Vinod
Thanks Vinod. You are the man.. Keep it up
Thanks! The tip was very useful.
Thanks Vinod
Very much
It is working fine for me
Ace, cheers!
Post a Comment