I looked at your Ant build script and saw no problem.
I looked at you XDoclet JavaDoc tags and saw no problem.
Then it dawned up me.... You action does not subclass Action.....
You have:
public class MyTestAction {
it should read
public class MyTestAction extends org.apache.struts.action.Action {
The template makes sure that the class is an Action if it is not an Action,
it will not process the class as follows (from struts_config_xml.xdt)
<XDtClass:forAllClasses type="org.apache.struts.action.Action">
Hey I wrote some tutorials on XDoclet that might be useful background
information.
This one is how to write your own XDoclet template.
http://www-106.ibm.com/developerworks/edu/ws-dw-ws-xdoc-i.html?S_TACT=103AMW
04&S_CMP=EDU
This one is how to use XDoclet for Custom Tags, Servlets, and EJBs.
http://www-106.ibm.com/developerworks/edu/ws-dw-ws-j2x-i.html?S_TACT=103AMW0
4&S_CMP=EDU
There is also a tutorial I wrote about Struts that covers XDoclet and
Struts:
http://www.triveratech.com/downloads2/index.htm
I am going to add a best practices with Struts that will highlight XDoclet
and Struts in more detail.
I just co-authored a book on Struts (Professional Struts by Wrox). It covers
XDoclet and Struts fairly well.
Rick Hightower
Chief Technology Officer
Trivera Technologies
http://www.triveratech.com
520 290 6855 (Phone)
520 977 8605 (Mobile)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andre Selton
Sent: Wednesday, August 13, 2003 9:49 AM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] Struts
Hi,
I want to use XDoclet to create struts-config.xml
but it is not working.
This is from my build.xml file :
<webdoclet destdir="${dest.dir}">
<fileset dir="${src.dir}">
<include name="**/*.java" />
</fileset>
<deploymentdescriptor />
<strutsconfigxml version="1.1" />
</webdoclet>
On my .java file I have the tags :
/**
* @struts.action
* path="/myTestAction"
*
* @struts.action-forward
* name="success"
* path="/hello.jsp"
*/
public class MyTestAction {
public ActionForward execute(ActionMapping
actionMapping, ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
return actionMapping.findForward("success");
}
}
It creates a struts-config.xml but it is without a
reference to the "MyTestAction".
TIA.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user