Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Servlets
Run servlet program when start apache-tomcat
R Sugan
Ranch Hand
Posts: 48
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I tried to get output of my
Servlet
program when start Apache-tomcat.How to proceed this process.please assist to me.
Thanks
Surya Kant
Ranch Hand
Posts: 104
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can do it by specifying
<load-on-startup> in servlet definition.
You can find this in web.xml
Bauke Scholtz
Ranch Hand
Posts: 2458
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can't get response without firing a request.
Besides, this is a design smell. Have you considered ServletContextListener?
Bear Bibeault
Sheriff
Posts: 67756
173
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Since the purpose of a servlet is to render a response to a request, and there's no request to respond to on startup, it makes no sense to do this with a servlet. Investigate the use of listeners as Bauke recommended.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
R Sugan
Ranch Hand
Posts: 48
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Thanks for reply.I got the output.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
starting a servlet when the server starts
Starting up Server to run Servlet application.
Refresh a Servlet page
Configuration of Tomcat
javax.servlet.* package
More...