struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Lorenz" <felipe.lor...@gmail.com>
Subject Re: [S2] Testing if session variable is present
Date Tue, 29 Jul 2008 17:37:37 GMT
Hummm.. Struts 1 or 2?

This code is to S2.

<s:if test="%{#session.your_variable != null}">

    do something

</s:if>

I didnt test it, so im not sure about the code.

But try it, and tell us.

Felipe Lorenz

On Tue, Jul 29, 2008 at 9:34 AM, Milan Milanovic
<milanmilanovich@yahoo.com>wrote:

>
> Hi,
>
> I need to test in jsp if some session variable is present, and based on
> that
> to
> show some struts view code or not. How can I do that ?
>
> --
> Thx, Milan
> --
> View this message in context:
> http://www.nabble.com/-S2--Testing-if-session-variable-is-present-tp18716278p18716278.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message