>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
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
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
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
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
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
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
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
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
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
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
EMAIL PROTECTED]
> Subject: Re: application object
>
> page - NO storage
> session -
> servletrequest.getSession(true).putValue("myobjectname",myobject);
> application -
> getServletConfig().getServletContext().setAttribute("myobjectname",my
> 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
,
> 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:
> 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
"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
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
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
"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
>
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
>
>
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
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
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
> > 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
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:
> >
> >
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
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
27 matches
Mail list logo