| Author |
Why servlet-name tag is there?
|
Pranav Pal
Ranch Hand
Joined: Nov 04, 2007
Posts: 74
|
|
Why cannot be replaced by Why is the need of <servlet-name> tag?
|
Hakuna Matata!
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
The first one declares your servlet. The second one creates a mapping for your servlet. You can have multiple mappings that point to the same servlet. You can also declare a servlet with a jsp-file instead of a servlet class. You can also have multiple servlet entries with the same servlet class (and different configurations). All of this would be hard to express in a singe tag.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: Why servlet-name tag is there?
|
|
|