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
<[EMAIL PROTECTED]>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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to