struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann...@reumann.net>
Subject Re: Repost - Messages with Scaffold Helper Class
Date Wed, 19 Mar 2003 15:44:11 GMT
On Wed, 19 Mar 2003 07:54:09 -0700
"Tony Tahbaz" <ttahbaz@attbi.com> wrote:

> 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>

I'm stumped. sorry. Looks like it should work perfectly. Maybe try
making sure there is a new line character after my.message2=bar (or not
a new line character after my.message2=bar forget which it should be) if
it's the last item declared in the resource file? You sure it's
accessing that specific resource file?(try switching them around ?
putting message2 before message1?). Sorry, wish I could be more help.


-- 
Rick Reumann

---------------------------------------------------------------------
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