Forums Register Login

Why we have to have the Servlet in the servlet directory, before the webserver is up

+Pie Number of slices to send: Send
Why we have to have the Servlet in the servlet directory,
before we start the webser up.? My understanding is, "Servlet is initialized only when it is called".
thanks
siva
+Pie Number of slices to send: Send
I'm not sure what you mean. Which directory are you referring to, and why shouldn't the Servlet be there?
+Pie Number of slices to send: Send
The servlet may be initialized well before its first reference. The web.xml may specify that the servlet be loaded upon startup, for example. Also, the container is free to load the servlet at any time as long as it is before a request is delivered to it.
+Pie Number of slices to send: Send
David & Bear, Thanks you both.
Bear got it correct. Still I am not sure, why servlet has to made available ( ie. place in servlet directory and configure ) to the webserver , before the web server comes up.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 597 times.
Similar Threads
Identify context path + servlet path+ path info for given URL
JSP Helper classes in Tomcat
Tomcat - access PDF reports directly
Is it possible to have a packaged Web Application without a WEB-INF directory?
Enable the Invoker Servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:33:10.