Here's the scriptlet-free version of Chris's Struts 1.1 version:

  <bean:define id="msg"><bean:message
key="isThisTheRightValue"/></bean:define>
  <logic:equal name="msg" value="true">
    You guessed right! You win an auomatic avocado peeler!
  </logic:equal>

--
Martin Cooper


> -----Original Message-----
> From: Mark Silva [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 3:53 PM
> To: Struts Users Mailing List
> Subject: message checking
> 
> 
> hello all,
> 
> is is possible to check for the existence of a message in my 
> page, and then output some html if it is there?  or if it is 
> equal to something.  i am looking to do something like this, 
> (although this code doesn't seem to work)
> 
> <logic:equal parameter="<bean:message 
> key="isThisTheRightValue"/>" value="true">
>   You guessed right! You win an auomatic avocado peeler!
> </logic:equal>
> 
> thanks,
> mark
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to