You are storing it in the request with the name "myObejct" but trying to
retrieve it with the name "o". Use:

 MyObject o2 = (MyObject)request.getAttribute("myObejct");

Paul

> -----Original Message-----
> From: Honza Spurný [mailto:[EMAIL PROTECTED]
> Sent: 28 November 2003 11:40
> To: [EMAIL PROTECTED]
> 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]
> 


**************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to