When you say a long time, how long is long?
A session is unique to a user. Should the value you
want to persist be available to more than one (or all)
users? If so, then you may be better using the
servlet context...
> struts. how can I set the
> > value from jsp and how can I retrieve that value
> in action from session
> > object.
Setting a session attribute from a JSP is not very
MVC. Doing this in one of your action classes might
be cleaner/easier to maintain/understand in the
future...
HTH
Stephen
--- Srinivas Jadcharla <[EMAIL PROTECTED]> wrote:
> You can use HttpSession Object..In that you have
> setAttribute("") and
> getAttribute("") mthods.
>
> On 11/29/05, Sony Thomas <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi Stephen,
> >
> > What I want to know is suppose I have to store
> some value to session. Is
> > there is something called Session object in
> struts. how can I set the
> > value from jsp and how can I retrieve that value
> in action from session
> > object. My problem is that i have to set the value
> to the session and I
> > have to keep that value for quiet a long time. I
> will be using that
> > value in different actions. so how can i set the
> value to the session
> > which should be persistent for long time
> >
> > thanks Stephen for the reply
> >
> > sony
> >
> > >>
> > >>
> > >
> > >
> > >
> > >
> >
>
>___________________________________________________________
> > >How much free photo storage do you get? Store
> your holiday
> > >snaps for FREE with Yahoo! Photos
> http://uk.photos.yahoo.com
> > >
> >
>
>---------------------------------------------------------------------
> > >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]
> >
> >
>
>
> --
> Thanks & Regards
>
> Srinivas
> 732-648-9421(Cell)
>
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]