Tim, that's great.
I now realise, following from your advice, the difference between JSTL
Expression Language implicit variables and the JSP implicit objects.
Thanks,
Frank.
Thanks, also, to Justin Ruthenbeck for the JSP expression script version.
----- Original Message -----
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 1:12 AM
Subject: Re: Can't access session id
> You need to use the pageContext implicit object.
> session id = <c:out value="${pageContext.request.session.id}" />
>
> -Tim
>
> Frank Burns wrote:
>
> > I need to access the session id from within a JSP and pass it,
explicitly,
> > to a Flash-based client.
> >
> > I am using the following code fragment as part of my JSP, but the value
> > returned for the session id is always blank.
> >
> > Am I doing something wrong?
> >
> > <[EMAIL PROTECTED] contentType="text/xml" session="true" %>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
> > <myResponse>
> > <sessionId>
> > session id = <c:out value="${sessionScope.id}" />
> > </sessionId>
> > </myResponse>
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]