The following comment has been added to this issue:
Author: pranav butala
Created: Fri, 5 Mar 2004 9:20 AM
Body:
Its been over a month since I worked on the web.xml file. But, if my memory serves me
correct, I had @web.servlet tags in BaseServlet that is extended by actionmain1
servlet.
What this does is that any servlet that extends BaseServlet will get captured in the
webxml file if BaseServlet has @web.servlet tags in it. Out put is as follows:
<servlet-name>actionmain1</servlet-name>
<url-pattern>/TMS.BaseServlet/*</url-pattern>
In order to avoid this, DONOT have @web-servlet tags in a servelt that is extended by
another servet.
Hope this helps.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-781
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-781
Summary: Using Xdoclet to map servlet names, Get mapping for Abstract classes too.
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
Web Module
Assignee: xdoclet-devel (Use for new issues)
Reporter: pranav butala
Created: Mon, 26 Jan 2004 4:29 PM
Updated: Fri, 5 Mar 2004 9:20 AM
Environment: Linux
Description:
I have a servlet,actionmain1, which extends BaseServlet(another servlet).
The XDoclet tags for
actionmain1 are as shown below. When XDoclet created web.xml,however, it
creates
two elements of <servlet-mapping> for actionmain1 corresponding two different
<url-pattern>s, as shown below.
-----------------------Code Begins----------------------------
/**
* @web.servlet name="actionmain1"
* @web.servlet-mapping url-pattern="/TMS.actionmain1/*"
*
*/
public class FlowerServlet extends BaseServlet {
......
......
}
Base Servlet is an abstract class
In build.xml, have:
<deploymentdescriptor
acceptAbstractClasses="false"
............ant........
</deploymentdescriptor>
-----------------------Code Ends----------------------------
-----------------------web.xml Begins----------------------------
<servlet-mapping>
<servlet-name>TMS.actionmain1</servlet-name>
<url-pattern>/TMS.actionmain1/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>actionmain1</servlet-name>
<url-pattern>/TMS.BaseServlet/*</url-pattern>
</servlet-mapping>
-----------------------web.xml Ends----------------------------
I do not want the
<servlet-name>actionmain1</servlet-name>
<url-pattern>/TMS.BaseServlet/*</url-pattern>
element in web.xml.
This is the only thig preventing me from checking tje script on the server. Help will
be greatly appreciated
---------------------------------------------------------------------
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
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel