-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well that's in the java doc sorry :

" attributes only persist as long as the request is being handled. "


Le Mercredi 10 Juillet 2002 09:55, Raphael Di Cicco a �crit :
> Thanks I will try that as soon as I can.
>
> But when am I supposed to remove the object inside the request from memory
> ?
>
> Le Mardi 09 Juillet 2002 20:20, David Mossakowski a �crit :
> > 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]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9K+q/h2ITK4xBkFERApycAJoC2Eh8AtojUwATDdU64D6LWwTBrQCfYfu6
tBD2xhhHpTmewlMJFfYYh0I=
=Txr6
-----END PGP SIGNATURE-----


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

Reply via email to