hi,

if the attribute netblockflixter is a bean and thinking that it has a property called Login

Hi,

you can check it like this

<logic:present name="netblockflixter" property="Login">
</logic:present>

your equal comparison is wrong., based on what you have your checking if the Login property of the netblockflixter bean is equal to string "Boolean.TRUE"

Thanks,

Nuwan


----- Original Message ----- From: "hk" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, May 22, 2007 5:30 PM
Subject: Re: How can I access an attribute of session using JSP tags?



In my JSP page, I have a code like below,

 <logic:present name="netblockflixter.Login" scope="session">
   <logic:equal value="Boolean.TRUE" property="netblockflixter.Login"
scope="session">
           Logout
   </logic:equal>
 <logic:notEqual value="Boolean.TRUE" property="netblockflixter.Login"
scope="session">
           Login
  </logic:notEqual>
 </logic:present>

I think, logic:present tag can check the session bean, but in this case, the
"netblockflixter" is not a bean.
How can I check the attribute in struts tag?



Lance Semmens-3 wrote:

I am saying the standard struts tags do check session scope if
scope="session" or no scope is provided, so it's probably a bug in your
code.

Nuwan Chandrasoma wrote:
Hi,

I would go for JSTL tags, but i dont really get what you trying to say!

Thanks,

Nuwan

----- Original Message ----- From: "hk" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, May 22, 2007 4:37 PM
Subject: How can I access an attribute of session using JSP tags?



I tried to check and output an attribute of session in a jSP page,
which I
had set in an action by using logic:present and bean:out tagas, but I
coulnd't. It seems like those are not a right tag.


--
View this message in context:
http://www.nabble.com/How-can-I-access-an-attribute-of-session-using-JSP-tags--tf3797537.html#a10741921

Sent from the Struts - User mailing list archive at Nabble.com.


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



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



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




--
View this message in context: http://www.nabble.com/How-can-I-access-an-attribute-of-session-using-JSP-tags--tf3797537.html#a10742891
Sent from the Struts - User mailing list archive at Nabble.com.


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



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

Reply via email to