If you are making requests of servlets, create cResource there and put 
it into REQUEST and not session and then forward to the JSP page to 
display.

d.

Raphael Di Cicco wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I'm faced with a problem that is maybe really easy to solve...
> 
> I have n JSP pages, and they all have a form. Each page contains a JAVA object 
> associated to it (called cRessource).
> 
> Because I want to keep these objects within the page, this is what I have done 
> :
> created a cRessource for each page
> saved it in the session in a String as this : "myRessource" + index (index is 
> unique to each page)
> When I have submitted the form, I do a session.getAttribute("myRessource" + 
> index)
> When I come for the first time to a page I create my ressource and put it in 
> the session.
> 
> 
> The problem is that this is very heavy in memory, I want to destroy every 
> "myRessource" once I quit the page. I tried to use jspDetroy method but :
> I have no idea when exactly this is called
> I cannot use my index variable in it
> 
> I hope I have been clear and someone has an idea on this
> 
> Thanks
> Rapha�l
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE9KqOoh2ITK4xBkFERAq38AJ9DYAEYGBOvQGwNO6RBinptbhHH5wCfcSkn
> iSDAXqcoa3ZVHQSFybECJ0E=
> =cHmv
> -----END PGP SIGNATURE-----
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 


-- 
David Mossakowski              [EMAIL PROTECTED]
Instinet Corporation                 212.310.7275



*******************************************************************************
<<Disclaimer>>

This message is intended only for the use of the Addressee and 
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

*******************************************************************************


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

Reply via email to