struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Tahbaz" <ttah...@attbi.com>
Subject Repost - Messages with Scaffold Helper Class
Date Wed, 19 Mar 2003 14:54:09 GMT
Sorry to repost this but I haven't been able to figure this one out yet...

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


Mime
View raw message