If you stored the bean in the session using:

  session.setAttribute("foo", yourBean);

then you can test for it using:

  <logic:present name="foo" scope="session">
    The bean is there.
  </logic:present>

--
Martin Cooper


> -----Original Message-----
> From: Vinh Tran [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 1:18 PM
> To: [EMAIL PROTECTED]
> Subject: logic:present on session bean
> 
> 
> All:
> 
> I have a custom bean that is placed in a user session.  How 
> can I detect if
> the bean exist in the session?  I have tried the following 
> but it does not
> work.  Is there a better method for accomplishing this?  Thanks.
> 
> 
> <logic:notPresent name="org.apache.struts.MyCustomBean">
>     do something.....
> </logic:notPresent>
> 
> <logic:present name="org.apache.struts.MyCustomBean">
>     do something else...
> </logic:present>
> 


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

Reply via email to