Is there any difference between servlet-path and servlet-class tags when you define a servlet mapping under web.xml?
<servlet>
<servlet-name>register</servlet-name>
<servlet-path>box.RegisterServlet</servlet-path>
</servlet>
Say if were to change servlet-path to servlet-class would it make any difference?
If not,why are there 2 separate tags for doing the same thing?
Thanks!
There is no such attribute as
<servlet-path/>in Servlet Spec. Only<servlet-class/>is allowed. Does it even work for you?See also
web-app_2_5.xsdweb-app_3_0.xsd