On Mon, 11 Feb 2002, Kar YEOW wrote:

> Date: Mon, 11 Feb 2002 08:06:08 +1100
> From: Kar YEOW <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: How to get hold of the JSP session scope bean from within a
>     Filter?
>
> Does anyone knows how to get a reference to the jsp bean (ie jsp:useBean
> scope='session') inside the Filter code?
>

    public void doFilter(ServletRequest req, ServlettResponse res)
      throws IOException, ServletException {

        HttpServletRequest hreq = (HttpServletRequest) req;
        HttpSession session = hreq.getSession();
        ...

    }

> Kar Yeow

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to