I think this works also, right?
        HttpSession session = (HttpSession) pageContext.getSession();
        String .... = (String) session.getAttribute("...");

--ani
----- Original Message -----
From: "Matthias Kerkhoff" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 2:27 PM
Subject: Re: How to access the session from a custom tag


> > I need to access the session (to get and set attributes) from a custom
tag. Any idea?
>
> ... or of course ...
>
> getPageContext().getAttribute("AttributeName", SESSION_SCOPE) and
> getPageContext().setAttribute("AttributeName", attribute, SESSION_SCOPE)
>
> --
> Matthias                        (mailto:[EMAIL PROTECTED])
>
>



Reply via email to