It was not clearly spelled out in the spec but thats how I have implemented my
JSP engine. You have to remember that the JSP code is compiled into a servlet.
So if you want to store the object through the life of the application (global
or member variable) then the natural way for the JSP engine to do it is as I
described in my previous posting. The JSP engine can create a Hashtable to
store these "application" object but why do that if the mechanism to store the
application objects already exists. Needless to say this should be invisible to
the JSP code...
Gabriel Wong
http://www.ezwebtools.com
----------------------------
"Kirkdorffer, Daniel" wrote:
> Gabriel,
>
> Are you suggesting that application level = servlet level? An application
> can be made up of multiple servlets.
>
> Dan
>
> > ----------
> > From: Gabriel Wong[SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 31, 1999 9:07 AM
> > To: Kirkdorffer, Daniel
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: application object
> >
> > page - NO storage
> > session -
> > servletrequest.getSession(true).putValue("myobjectname",myobject);
> > application -
> > getServletConfig().getServletContext().setAttribute("myobjectname",myobjec
> > t);
> >
> > Gabriel Wong
> > http://www.ezwebtools.com
> > ----------------------------
> > "Kirkdorffer, Daniel" wrote:
> >
> > > It is unclear to me how the application scope works. In 0.91 we've had
> > to
> > > create our own application session object that extends Hashtable. When
> > and
> > > how does the 0.92 "application" get created and destroyed?
> > >
> > > Dan
> > >
> > > > ----------
> > > > From: Roberto Torresani[SMTP:[EMAIL PROTECTED]]
> > > > Reply To: Roberto Torresani
> > > > Sent: Wednesday, March 31, 1999 12:16 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: application object
> > > >
> > > > You can create a bean with scope "Application"...
> > > >
> > > > Daniel Wieselberg wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > How do I store information for a whole application? In ASP there is
> > an
> > > > > application object. Does JSP has anything similar?
> > > > >
> > > > > // Daniel
> > > > >
> > > > >
> > > >
> > ==========================================================================
> > > > =
> > > > > To unsubscribe, send email to [EMAIL PROTECTED] and include in
> > the
> > > > body
> > > > > of the message "signoff JSP-INTEREST". For general help, send email
> > to
> > > > > [EMAIL PROTECTED] and include in the body of the message "help".
> > > >
> > > > --
> > > > Roberto Torresani
> > > > ---------------------------------------
> > > > Informatica e Statistica Applicate
> > > > Istituto Agrario di S.Michele all'Adige
> > > > Via E.Mach, 1
> > > > 38010 S.Michele a/Adige - TN - ITALY
> > > > ---------------------------------------
> > > > Tel. 0461/615230 - Fax. 0461/650872
> > > >
> > > >
> > ==========================================================================
> > > > =
> > > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > > > body
> > > > of the message "signoff JSP-INTEREST". For general help, send email
> > to
> > > > [EMAIL PROTECTED] and include in the body of the message "help".
> > > >
> > >
> > >
> > ==========================================================================
> > =
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > > of the message "signoff JSP-INTEREST". For general help, send email to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
> >
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".