<logic:equal name="KEY" scope="session" value="True" >
</logic:equal>

not tested - done my best......watch the capitalisation!
K.


--- Andrew B Forman <[EMAIL PROTECTED]> wrote:
> I've been using the session taglib
> http://jakarta.apache.org/taglibs/doc/session-doc/intro.html
> 
> which would end up looking something like...
> 
> <session:existsAttribute name="KEY" value="true">
>  <session:equalsAttribute name="KEY" match"True" value="true">
>       // Some HTML goes here.
>  </session:equalsAttribute>
> </session:existsAttribute>
> 
> _\|/_______________________________
>   generation-d development
>   andrew b forman 
> 
> > -----Original Message-----
> > From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 15, 2002 9:48 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Help using Struts Logic tags.
> > 
> > 
> > What is the best way to write the following scriptlet code using 
> > Logic Tags.
> > 
> >  I tried to do it with present and notEmpty but couldn't get it to work.
> > 
> > <% if(session.getAttribute("KEY") != null){ %>
> > 
> >        if(session.getAttribute("KEY").equals("True"))
> >        {
> >              // Some HTML goes here.
> >        }
> > 
> > <% } %>
> > 
> > -Thanks 
> > 
> > --
> > 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]>
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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

Reply via email to