File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Equivalent Global.asa of ASP's in Servlets/JSP's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Equivalent Global.asa of ASP Watch "Equivalent Global.asa of ASP New topic

Equivalent Global.asa of ASP's in Servlets/JSP's

Narendra Kamaraju

Joined: Jul 18, 2001
Posts: 16
Hi ,
I want to do jumpstart of some operations at the application start up time or new session start up time at global level of the application.I know this can be done by use of global.asa file in ASP's.How do I do this in servlets/JSP's.
Thanks in advance for the answers.

Narendra Kamaraju
Terence Doyle
Ranch Hand

Joined: May 30, 2001
Posts: 328
HI, Narendra,
There are 4 methods in the ServletContext interface that might help:
<i>I'm quoting this from the docs as I've only been studying the specs for 3 days now so I've a long way to go.</i>
Now, exactly how to go about implementing the ServletContext interface ....
Hopefully, some wiser soul than me can help you out - I'll be watching this post to see any solutions for myself

Terry Doyle
Sun Certified Programmer for Java 2 Platform

Raising Flares debut album 'Ignition' out now

Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
Joe Paolangeli
Ranch Hand

Joined: Apr 05, 2000
Posts: 73
This can be accomplished by using the init() method of a servlet. The init() method of a servlet can be automatically started during the server start up. For example in Tomcat you can automatically start up a servlet by including the "<load-on-startup>" tag in the web.xml file:

Hope this helps

[This message has been edited by Joe Paolangeli (edited October 18, 2001).]
I agree. Here's the link:
subject: Equivalent Global.asa of ASP's in Servlets/JSP's
jQuery in Action, 3rd edition