The session is tracked by the servlet container, and
the JSP, bean, custom tag, and servlet all have access
to it. So, I think thta's a decision that you don't
have to make.
Mike K.
--- marju jalloh <[EMAIL PROTECTED]> wrote:
> Thanks
> I know all about java session.What I mean is
> implementing session in jsp or in bean which one is
> advisable
>
> Fredrik Rubensson <[EMAIL PROTECTED]>
> wrote:
>
> > Marju wrote:
> > I want to track a session of an input a user
> enter in my jsp page.The
> jsp page
> >is using a bean to execute sql queries.That works
> wel.
> >
> > My question is it advisable to track the session
> in the jsp page or
> in the
> >Bean.Which is better
>
> I am not sure I follow you here. There is a session
> object you can get
> from the request that makes it possible tostore data
> through several
> request in the same session.
> request.getSession().setAttribute("akey",
> anObject) to set session attributes.
> request.getSession().getAttribute("akey") to get
> attributes. If you have
> users that log in and out you probably should set
> some user identifying
> info in the session and a filter to makes sure that
> the user is logged
> in for certain requests.
>
> Regards,
> Fredrik
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------
> Yahoo! Photos
> Ring in the New Year with Photo Calendars. Add
> photos, events, holidays, whatever.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]