The following issue has been updated:
Updater: ronnc (mailto:[EMAIL PROTECTED])
Date: Mon, 22 Nov 2004 10:45 PM
Comment:
A possible solution could be to have a "dont-inherit-servlet-mapping" kind of
flag to allow user to chose. But for now I've submitted a patch to set
superclasses="false" to be more conservative.
Changes:
Attachment changed to patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1165?page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1165
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1165
Summary: Inheriting servlet-mapping in @web.servlet-mapping
Type: Bug
Status: Open
Priority: Major
Original Estimate: 10 minutes
Time Spent: Unknown
Remaining: 10 minutes
Project: XDoclet
Components:
Web Module
Versions:
1.3
Assignee: xdoclet-devel (Use for new issues)
Reporter: ronnc
Created: Mon, 22 Nov 2004 10:43 PM
Updated: Mon, 22 Nov 2004 10:45 PM
Description:
By default, servlet-mappings declaration are inherited from parent classes.
e.g.,
/**
* @web.servlet
* name="BaseServlet"
*
* @web.servlet-mapping
* url-pattern="/BaseServlet"
*/
public class BaseServlet extends HttpServlet {
}
Generates this,
<servlet-mapping>
<servlet-name>BaseServlet</servlet-name>
<url-pattern>/BaseServlet</url-pattern>
</servlet-mapping>
/**
* @web.servlet
* name="ExtendedServlet"
*
* @web.servlet-mapping
* url-pattern="/ExtendedServlet"
*/
public class ExtendedServlet extends BaseServlet {
}
Generate this,
<servlet-mapping>
<servlet-name>ExtendedServlet</servlet-name>
<url-pattern>/ExtendedServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ExtendedServlet</servlet-name>
<url-pattern>/BaseServlet</url-pattern>
</servlet-mapping>
Whilst this can be useful when BaseServlet is abstract or not deployable, it
creates a problem when both servlets needs to be deployed in the same webapp.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel