Style sheet for action error message

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Style sheet for action error message

vinodkashyap
Administrator
I want to display error message in more style way.

Now action error tag puts the messages in the <li> tag which looks ugly. I want to change that <li> tag image to some more interesting image.

Can anybody help me out ??
Reply | Threaded
Open this post in threaded view
|

Re: Style sheet for action error message

vinodkashyap
Administrator
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()">
<s:iterator value="actionErrors">
<s:property escape="false" />

</s:iterator>
</s:if>


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

Similar for <s:actionmessage /> tag.