On Sat, 2 Mar 2002, Agrawal, Anuj (Anuj)** CTR ** wrote:

> I'd like to use either the <when> or <if> tags to test for existence of a
> session variable.
> 
> I tried:
> 
> <c:if test="$session.username != null">
>       session.username is available
> </cf:if>

The syntax for this will depend on the final JSTL expression language.  
We hope that the upcoming beta release will contain a more final version,
so I'll hold off commenting for now on workarounds in the preliminary
(EA3) languages, if that's all right.  In a week, things should be closer
to their eventual form.

--
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this spring from Manning Publications)


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

Reply via email to