0

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!

Yaman
  • 33
  • 4

1 Answers1

2

There is no such attribute as <servlet-path/> in Servlet Spec. Only <servlet-class/> is allowed. Does it even work for you?

See also

Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674