Why you are putting it into the request yaar??
U can put it into the session..

Regards,
Shyam




Honza Spurný <[EMAIL PROTECTED]> 
11/28/03 05:10 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>


To
<[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to