tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52138] global web.xml servlet-mappings are not used when additional mappings are defined in app web.xml
Date Tue, 08 Nov 2011 23:41:16 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52138

--- Comment #4 from Mark Thomas <markt@apache.org> 2011-11-08 23:41:16 UTC ---
To expand on my previous comment...

When servlet mappings are overridden (e.g. fragment overrides annotations, or
application overrides global) all servlet mappings from the overridden source
are dropped. The reason for this is simple. If annotations are used to map a
servlet to *.foo but the developer wants to change that to *.bar, there is no
way to explicitly remove one or more mappings. Therefore, all overridden
mappings are removed. The price that is paid for this is that if a developer
wants to add a mapping, they have to specify all the overridden mappings as
well.

This behaviour has been confirmed as required and correct with the Servlet EG
for fragments, annotations and main web.xml. The global defaults just follow
this pattern.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message