File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
servlet context without servlet
Joined: Feb 24, 2004
Oct 28, 2004 14:10:00
I am using startus and
with Weblogic 6.1.
Could anybody tell me how do I use "servlet context" in any class other than
Thanks a lot
Joined: Aug 01, 2002
Oct 28, 2004 14:28:00
is an object, which is passed to
by the Servlet Container. So source is servlets. I think you can try following ways.
You can pass servlet reference to the Class which is going to use ServletConext. Once servlet reference has come you get
Another way is to implement
interface by this class. Whenever
is created this class will get notification and from the event
you can get
Actual scenario is not clear to me, so I am just throwing ideas. But I think above ideas should be able to help you.
I agree. Here's the link:
subject: servlet context without servlet
When is a servletcontext destroyed?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014