struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Honza Spurný <spu...@master.cz>
Subject Re: request.setAttribute
Date Fri, 28 Nov 2003 11:45:29 GMT
Shyam Krishnan wrote:
> Why you are putting it into the request yaar??
> U can put it into the session..

I don't want it in session, I need this object just for a request...

>
> Regards,
> Shyam
>
>
>
>
> Honza Spurný <spurny@master.cz>
> 11/28/03 05:10 PM
> Please respond to
> "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>
>
> To
> <struts-user@jakarta.apache.org>
> cc
>
> Subject
> request.setAttribute
>
>
>
>
>
>
> Hi there,
>
> I have small problem with adding some objects to the request. I need
> to store quite huge object into request variable
>
> MyObject o = new MyObject();
> o.setObjectName("name");
> request.setAttribute("myObejct", o);
>
> These are correct steps how to make it, aren't they? But the object
> MyObject
> is really huge. Is it possible, tak the huge objects are not store
> into request variable? Because when I store there object that surely
> exists, and
> then I call
>
> MyObject o2 = (MyObject)request.getAttribute("o");
> if (o2 == null) System.out.println("NULL");
> else System.out.println(o.getObjectName());
>
> I always get NULL on output.
>
> Can be there problem with the size of such object?
>
> Thanks
> Sporak
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message