Re: Access application object from tag library?

2001-09-09 Thread Dmitry Namiot
>and need to be able to >access an object in the application scope to do so pageContext.getAttribute(name,pageContext.APPLICATION_SCOPE) -- Coldjava - server-side Java components http://www.servletsuite.com __ Your favorite stores

Access application object from tag library?

2001-09-08 Thread David Castro
Okay, I know how to access a Session object from a tag library (pageContext.getSession()), but I can't for the life of me figure out how to access the application object. I want to implement a client connection counter to create a demo version of a tag library I'm writing, and need to

Re: Application object

2001-03-28 Thread Sachin S. Khanna
Do the following : Import the javax.servlet.* package in your bean. So that the interface ServletContext is available in your bean. >From your jsp pass the application object to your bean. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - F

Application object

2001-03-28 Thread Marino Vittorio
How can I access the application object from inside a bean of my app? Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "s

Re: Application object x class file (fwd)

2000-12-19 Thread Hans Bergsten
Daniel Paranhos wrote: > > I want to change a variable stored in jsp application object when > the user session expires. I'm using the method > valueUnbound(HttpSessionBindingEvent event) of the > HttpSessionBindingListener interface to catch this event in one of my ja

Application object x class file (fwd)

2000-12-19 Thread Daniel Paranhos
I want to change a variable stored in jsp application object when the user session expires. I'm using the method valueUnbound(HttpSessionBindingEvent event) of the HttpSessionBindingListener interface to catch this event in one of my java classes. I know how to change a variable stor

Application object

2000-10-27 Thread Bains Rupali
I need to set some objects in the Application object that should be available at all times How can I do this at server startup? I am using iPlanet 6.0. Thanks Rupali === To unsubscribe: mailto [EMAIL PROTECTED] with body

Application object problem

2000-06-13 Thread Jean de Lavarene
Hello everybody, I am using JRun 3.0 with Apache under NT :( and I am having problem with my global.jsa file. It seems that I cannot use the object application in this file. Can anybody explain why? Here is my global.jsa file : <%! public void applicationInit() { application.setAttribute("tes

Re: application object

1999-04-01 Thread Christopher Cobb
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

[Fwd: AW: application object]

1999-04-01 Thread Craig R. McClanahan
Forgot to forward to the JSP-INTEREST mailing list. "Craig R. McClanahan" wrote: > Volker Stiehl wrote: > > > Hello Craig, > > I followed your discussion about the application object and especially your > > description about the three cases stated below leads t

Re: application object

1999-03-31 Thread Craig R. McClanahan
Rob Schoening wrote: > > This corresponds to the direction the servlet API is headed (a > > servlet context > > being treated essentially as an application), so the choice of > > "application" as > > the term makes a lot more sense when you understand what it is > > really doing. > > Previous com

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
EMAIL PROTECTED] > Subject: Re: application object > > page - NO storage > session - > servletrequest.getSession(true).putValue("myobjectname",myobject); > application - > getServletConfig().getServletContext().setAttribute("myobjectname",my

Re: application object

1999-03-31 Thread Rob Schoening
> This corresponds to the direction the servlet API is headed (a > servlet context > being treated essentially as an application), so the choice of > "application" as > the term makes a lot more sense when you understand what it is > really doing. > Previous comments from Sun engineers on this top

Re: application object

1999-03-31 Thread Gabriel Wong
, > rather than invalidating it, letting the session timeout or end when all the > browser windows are closed. > > Does that help? > > Dan > > > -- > > From: Gabriel Wong[SMTP:[EMAIL PROTECTED]] > > Reply To: Gabriel Wong > > Sent:

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
> From: Gabriel Wong[SMTP:[EMAIL PROTECTED]] > Reply To: Gabriel Wong > Sent: Wednesday, March 31, 1999 3:12 PM > To: [EMAIL PROTECTED] > Subject: Re: application object > > "Kirkdorffer, Daniel" wrote: > > > An application sess

Re: application object

1999-03-31 Thread Gabriel Wong
"Kirkdorffer, Daniel" wrote: > An application session has to be separately managed. Where a session object > lasts the life of the browser (or until invalidated), an application object > lasts the life of a login and logout of the application. In this case using > a sco

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
is what I believe got us talking about this in the first place. An application session has to be separately managed. Where a session object lasts the life of the browser (or until invalidated), an application object lasts the life of a login and logout of the application. In this case using a scop

Re: application object

1999-03-31 Thread Gabriel Wong
Craig - Thank you for keeping me honest. After further thoughts on this subject I agree you are absolutely correct. Gabriel Wong http://www.ezwebtools.com "Craig R. McClanahan" wrote: > "Kirkdorffer, Daniel" wrote: > > > >> Finally, Yes "application" refers to the s

Re: application object

1999-03-31 Thread Craig R. McClanahan
"Kirkdorffer, Daniel" wrote: > >> Finally, Yes "application" refers to the specific JSP that is being > called NOT > >> The Application... > > Right, so it is just like a "global" variable that exists for the lifetime > of the pagecompiled JSP (which is a servlet). Application is a poor choice >

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
ice of words here. Thanks, Dan > -- > From: Gabriel Wong[SMTP:[EMAIL PROTECTED]] > Reply To: Gabriel Wong > Sent: Wednesday, March 31, 1999 11:35 AM > To: [EMAIL PROTECTED] > Subject: Re: application object > > Its just a matter of wording > >

Re: application object

1999-03-31 Thread Gabriel Wong
Its just a matter of wording lets assume you wrap this application object in a bean class MyBean { private Object m_staticobject; public Object getStaticObject() { return m_staticobject; } } Now using JSP beans in myjspfile.jsp: 1)if we create a "page" instance of MyBea

Re: application object

1999-03-31 Thread Gabriel Wong
y app I create > an app object/hashtable at login. > > I agree the spec is not clear on application level scope. > > Dan > > > -- > > From: Gabriel Wong[SMTP:[EMAIL PROTECTED]] > > Sent: Wednesday, March 31, 1999 10:53 AM > > To: Kir

Re: application object

1999-03-31 Thread Gabriel Wong
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

Re: application object

1999-03-31 Thread Gabriel Wong
> > 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

Re: application object

1999-03-31 Thread Kirkdorffer, Daniel
ROTECTED]] > 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: > > > >

Re: application object

1999-03-31 Thread Roberto Torresani
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 anythi

application object

1999-03-31 Thread Daniel Wieselberg
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