Struts 1 - How to display ActionMessages

Posted by Yatendra Goel on Stack Overflow See other posts from Stack Overflow or by Yatendra Goel
Published on 2010-03-08T17:19:42Z Indexed on 2010/03/08 17:21 UTC
Read the original article Hit count: 397

Filed under:
|
|

I am displaying ActionMessages through a JSP file by the following command:

<logic:messagesPresent message="true">
    <ul id="messsages">
        <html:messages id="msg" message="true">
            <li><bean:write name="msg"/> </li>
        </html:messages>
    </ul>
</logic:messagesPresent>

Now I want to display only selected messages. How can I indicate which message to display?

© Stack Overflow or respective owner

Related posts about struts

Related posts about java