--- On Thu, 7/31/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> No one have any idea how to access session variable in jsp
> in this kind of simple scenario ?

That's one explanation.

>> So, scenario is like this:
>> [...]

I am unable to duplicate the inability to test session variables for 
non-existence/null.

If I have an action implementing SessionAware (properly), set "foo1" into 
session, and do not set "foo2" into session, the following tests work:

  <s:if test="#session.foo1 == null">
  ...
  <s:if test="#session.foo2 != null">
  ...

They continue to work if I go through multiple actions using the exact same JSP 
to test for their presence/non-presence.

It is likely you are doing something wrong. I suppose that means you'll need to 
post the relevant SessionAware implementation, the code that sets the session 
variable(s), any action code in the application path that could modify session 
variables, the JSP that currently doesn't work, and any variants of the JSP 
code you've tried that also hasn't worked.

Dave


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

Reply via email to