This works for me using 1.2b3:
/**
* @web.servlet name="cachetest" load-on-startup="1"
* @web.servlet-mapping url-pattern="/cachetest/*"
* @web.servlet-init-param name="cache-time-secs" value="30"
*/
public class CacheServlet extends HttpServlet {
What you have certainly looks like it should work, so probably something
else is going on.
--
Eric Lennon Bowman
BoboCo Ltd
[EMAIL PROTECTED]
http://www.boboco.ie
+35317978944
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED] On Behalf Of Mark Markarian
> Sent: 07 July 2003 09:14
> 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
> [EMAIL PROTECTED]
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user