Originally posted by vijay dadhwal:
yes, you can provide as many as mapping you want for a servlet
mapping can be done in single mapping block like this
Vijay (SCJP)
This is true, but only in Servlet Spec 2.5 and up.
Look at SRV.S.19 (Changes from Servlet 2.4):
SRV.19.0.3 Multiple Occurrences of Servlet Mappings
Previous versions of the servlet schema allows only a single url-pattern or servlet
name per servlet mapping. For servlets mapped to multiple URLs this results in
needless repetition of whole mapping clauses.
The deployment descriptor servlet-mappingType was updated to:
So..
If you're writing for containers that don't support the 2.5 spec, you'll need to create multiple servlet-mapping entries.
[ December 16, 2008: Message edited by: Ben Souther ]