Re: Problem using scriplet object in s:if tag

2010-12-12 Thread Li Ying
It don't works, because the JSP local variable is not an OGNL local variable. The JSP local variable will be translated into a local variable of the Servlet code, and it is a local variable of Java language, so you can not reference it in the OGNL expression. An OGNL local variable should be

Problem using scriplet object in s:if tag

2010-12-10 Thread ashish chawre
Hi list, I am trying to use an object from scriplet to s:if tag for a conditional display purpose. Here is the code: In jsp I am fetching user record from the session % UserDTO userDTO = (UserDTO)session.getAttribute(user); % Now I like to show Logout label only if userDTO is avail s:if

RE: Problem using scriplet object in s:if tag

2010-12-10 Thread Biesbrock, Kevin
Users Mailing List Subject: Problem using scriplet object in s:if tag Hi list, I am trying to use an object from scriplet to s:if tag for a conditional display purpose. Here is the code: In jsp I am fetching user record from the session % UserDTO userDTO = (UserDTO)session.getAttribute(user

Re: Problem using scriplet object in s:if tag

2010-12-10 Thread ashish chawre
:22 AM To: Struts Users Mailing List Subject: Problem using scriplet object in s:if tag Hi list, I am trying to use an object from scriplet to s:if tag for a conditional display purpose. Here is the code: In jsp I am fetching user record from the session % UserDTO userDTO = (UserDTO

RE: Problem using scriplet object in s:if tag

2010-12-10 Thread Biesbrock, Kevin
: Problem using scriplet object in s:if tag Thanks a lot Kevin. It works but I am wondering why is the user userDTO not working. If we have a requirement something like this where we have to use any variable from scriplet in struts tag then how we will do that. -- Ashish On Fri, Dec 10, 2010 at 7:30 AM

Re: Problem using scriplet object in s:if tag

2010-12-10 Thread ashish chawre
your scriplets to use s:set... Beez r 5347 -Original Message- From: ashish chawre [mailto:ashish.chawr...@gmail.com] Sent: Friday, December 10, 2010 11:37 AM To: Struts Users Mailing List Subject: Re: Problem using scriplet object in s:if tag Thanks a lot Kevin. It works but I am