Winner!
That's it thanks.
Changed
  <path id="xdoclet.classpath">
    <pathelement location="${env.J2EE_HOME}/lib/j2ee.jar"/>
    <fileset dir="${env.XDOCLET_HOME}/lib" includes="**/*.jar"/>
  </path>
to
  <path id="xdoclet.classpath">
    <pathelement location="${env.J2EE_HOME}/lib/j2ee.jar"/>
    <pathelement location="${lib.dir}/struts.jar"/>
    <fileset dir="${env.XDOCLET_HOME}/lib" includes="**/*.jar"/>
  </path>
and it works.  I should have figured that out myself, though. :(

-----Original Message-----
From: Pawel Rzepa [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 03:37
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] Struts DispatchAction


I think the problem originates from your classpath.

Xdoclet templates states:
    <!-- ... -->
    <action-mappings>
    </XDtConfig:ifConfigParamEquals>  <XDtClass:forAllClasses 
type="org.apache.struts.action.Action">
    <XDtClass:forAllClassTags tagName="struts:action">
    <!-- ... -->

It means that action-mappings are generated only for Action classes and 
its subclasses. Xdoclet have no idea that DispatchAction extends Action 
unless you put struts.jar in your classpath.

Try to extend your classpath.
Hope it will help.

Pawel


Fenderbosch, Eric wrote:

> I just checked that if I extend my own class that extends Action it works fine.  
> However, extending org.apache.struts.actions.DispatchAction does not.
> 
> -----Original Message-----
> From: Pawel Rzepa [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 11:01
> To: [EMAIL PROTECTED]
> Subject: Re: [Xdoclet-user] Struts DispatchAction
> 
> 
> What exactly is your problem? My actions extend BaseAction, which is a 
> subclass of Action that I wrote myself. I put @struts.action tag into 
> javadoc comment and everything works great.
> 
> Pawel
> 
> Fenderbosch, Eric wrote:
> 
> 
>>How can I get XDoclet to generate a <action-mapping> section of my struts-config.xml 
>>for a subclass of Action, e.g. DispatchAction?
>>
>>Eric
>>
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to