After looking through the developer list I think the problem is my servlet doesn't extend HttpServlet.  I'm using Velocity and so my servlet is at least 3 levels removed from HttpServlet.  I'll probably just have to go with using servlet.xml in my merge directory.
 
Thanks for the input.
 
-Mark
----- Original Message -----
Sent: Monday, July 07, 2003 1:59 AM
Subject: RE: [Xdoclet-user] @web.servlet tag problem

Mark,
 
Check the class inheritance.  You might try inheriting directly from HttpServlet and see if that works, then take smaller steps toward the desired configuration.  Sorry I can't provide more information though.
 
-b
-----Original Message-----
From: Mark Markarian [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2003 5:14 PM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] @web.servlet tag problem

I have the following xdoclet tag fragment in a servlet class:
 
/**
* AdminController Servlet
*
* @web.servlet
*    name="AdminController"
* @web.servlet-init-param
*    name="properties"
*    value="/WEB-INF/conf/velocity.properties"
*
* @web.servlet-mapping
*    url-pattern="/admin"
*
**/
 
In web.xml it produces the servlet-mapping tag perfectly but will not produce the servlet tag (or init-param tag).
 
I know you can put the servlet and init-param tags in servlets.xml in the merge directory, and this works, but I'm wondering why the tag in the servlet class file won't work.
 
Has any else had this problem?
 
Thanks,
 
Mark

Reply via email to