You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tony Tahbaz <tt...@attbi.com> on 2003/03/18 15:41:02 UTC
Messages with Scaffold Helper Class
Hi All,
I'm having trouble getting messages to show up in my .jsp file using a
scaffold approach. In my helper bean I'm setting a couple of messages like:
ProcessResult result = new ProcessResultBase();
result.addMessage("my.message1");
result.addMessage("my.message2");
In my resource file I have:
my.message1=foo
my.message2=bar
and in my .jsp I have:
<logic:messagesPresent message="true">
<UL>
<html:messages id="message" message="true">
<LI><bean:write name="message"/></LI>
</html:messages>
</UL>
</logic:messagesPresent>
but only the first message shows up. Do I need to interate through the
messages or is there something else I'm missing? Thanks,
-T.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org