Forums Register Login

servlet registration in web.xml

+Pie Number of slices to send: Send
Why do we have to register all servlets in web.xml,when the same is not needed for JSPs?
+Pie Number of slices to send: Send
The purpose of web.xml is to define the parts of a web application so clearly that it can be packaged up and installed on another web server with no problem. The first servlet APIs were pretty sloppy about this but Sun has progressively nailed things down as the API has been refined.
You can still turn on the "invoker" servlet to run servlets that are not defined in web.xml but I don't think it is a good idea.
Bill
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 995 times.
Similar Threads
application client deployment descriptor
Tracking users and user security
add a java.util.List in application scope parameters.
A small web application
Session Timeout setting??
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:30:03.