> I've had no problem getting at the HttpSession from within the
> processRequest method of a bean.

I'm sorry if I wasn't clear. The difficulty wasn't getting to the session,
but being able to redirect based on information in the session. Tell me how
to get a handle on HttpServletResponse and I'm all set.

Thanks though

>
> The following works fine for me:
>
> public void processRequest(HttpServletRequest req)
> {
>       HttpSession sess = req.getSession(true);
>       UserAccessorBean uab = (UserAccessorBean)
> sess.getValue("useraccessorbean");
>       ...
> }
>
> And I've done setValue() calls, too.  Both work fine.
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, March 24, 1999 3:10 PM
> To: [EMAIL PROTECTED]
> Subject: getting access to HttpServletResponse
>
>
> Hi,
>
> .92 doesn't provide access to the HttpServletResponse from within a bean.
> First, I'm wondering why it wasn't included. The reason I want it
> is so that
> I can check the session to determine if a person has logged in. If they
> haven't I need to redirect them to a log in page. I don't believe
> there is a
> feasible way to do redirect that using JSP .92 beans.
>
> On a similar note, why not have JSP beans look more like servlets and
> include service, doGet, doPost, etc? Why make developers learn
> how to create
> beans and servlets? Just make a servlet a bean.
>
> Thanks for any help
>
> ==================================================================
> =========
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to