struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamesey" <JamesPra...@hotmail.com>
Subject Re: Object going missing is session..
Date Wed, 12 Mar 2003 16:52:19 GMT
its those damn code completion widgets.. i swear..!!

as my school motto used to say in scotland.. "wusnae me!!"


"Wendy Smoak" <Wendy.Smoak@asu.edu> wrote in message
news:A7AF1AE70A8C124593A1AC831EFE46FE0D668B@ex3.asurite.ad.asu.edu...
> Jamesey wrote:
> > 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..
>
> Just a typo?  You're putting the object in session scope, and then listing
> the request attributes, not the session attributes.
>
> Try:
> request.getSession().getAttributeNames()
>         ^^^^^^^^^^^^^
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
>
>




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


Mime
View raw message