You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jamesey <Ja...@hotmail.com> on 2003/03/12 17:21:18 UTC

Object going missing is session..

I have an action declared as scope=request

i perform request.getSession().setAttribute("blah",object)

i have debug to list all attribute names in my action class (and the "blah")
appears in the log.

i have debug in my jsp to list the request.getAttributeNames().. and the
"blah" object has vanished..

any ideas?




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Object going missing is session..

Posted by Nicolas De Loof <ni...@cgey.com>.
If you put it in session, why would it be in request ?

try to log in your JSP request.getSession().getAttributeNames()

Nico.


> I have an action declared as scope=request
>
> i perform request.getSession().setAttribute("blah",object)
>
> i have debug to list all attribute names in my action class (and the
"blah")
> appears in the log.
>
> i have debug in my jsp to list the request.getAttributeNames().. and
the
> "blah" object has vanished..
>
> any ideas?
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Object going missing is session..

Posted by Jamesey <Ja...@hotmail.com>.
oh god i cant beleive i did that.. so stupid

apols.. putting one object in the session and trying to get from the
request..

(i'm having one of those days)

"Jamesey" <Ja...@hotmail.com> wrote in message
news:b4nn0o$4oj$1@localhost.localdomain...
> I have an action declared as scope=request
>
> i perform request.getSession().setAttribute("blah",object)
>
> i have debug to list all attribute names in my action class (and the
"blah")
> appears in the log.
>
> i have debug in my jsp to list the request.getAttributeNames().. and the
> "blah" object has vanished..
>
> any ideas?




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Object going missing is session..

Posted by Jamesey <Ja...@hotmail.com>.
oh i feel such a doofus..

its not a good day... going to go hide for a bit now..

"James Mitchell" <jm...@apache.org> wrote in message
news:003101c2e8b4$34aac7c0$6f01a8c0@atlanta...
> request != session
>
>
> --
> James Mitchell
> Software Developer/Struts Evangelist
> http://struts.sourceforge.net/struts-atlanta/
>
>
>
> > -----Original Message-----
> > From: Jamesey [mailto:JamesPrance@hotmail.com]
> > Sent: Wednesday, March 12, 2003 11:21 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Object going missing is session..
> >
> >
> > I have an action declared as scope=request
> >
> > i perform request.getSession().setAttribute("blah",object)
> >
> > i have debug to list all attribute names in my action class
> > (and the "blah")
> > appears in the log.
> >
> > i have debug in my jsp to list the
> > request.getAttributeNames().. and the
> > "blah" object has vanished..
> >
> > any ideas?
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Object going missing is session..

Posted by James Mitchell <jm...@apache.org>.
request != session


--
James Mitchell
Software Developer/Struts Evangelist
http://struts.sourceforge.net/struts-atlanta/



> -----Original Message-----
> From: Jamesey [mailto:JamesPrance@hotmail.com] 
> Sent: Wednesday, March 12, 2003 11:21 AM
> To: struts-user@jakarta.apache.org
> Subject: Object going missing is session..
> 
> 
> I have an action declared as scope=request
> 
> i perform request.getSession().setAttribute("blah",object)
> 
> i have debug to list all attribute names in my action class 
> (and the "blah")
> appears in the log.
> 
> i have debug in my jsp to list the 
> request.getAttributeNames().. and the
> "blah" object has vanished..
> 
> any ideas?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org