They need to be in a merge directory in a global-forwards.xml file. For example:

   <global-forwards>
       <forward name="mainMenu" path="/mainMenu.html"/>
   </global-forwards>

If you want to check out a project that uses XDoclet for a lot of Struts code generation (including ActionForms from Hibernate POJOs), check out AppFuse (http://appfuse.dev.java.net).

Matt

Laran Evans wrote:

How does XDoclet handle global-forwards in struts-config.xml.

Is there example code around that I can just look at?

Rupp, Heiko wrote:

I would say, docu is wrong here, as in the samples
there are some that use the struts tags in servlets.
Can you please raise an issue in JIRA about this
http://opensource.atlassian.com/projects/xdoclet/secure/Dashboard.jspa ?




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laran Evans
Sent: Thursday, August 12, 2004 3:17 PM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] Struts Forms


I have a struts ActionForm which I would like to markup with xdoclet tags.

The documentation for @struts.form however says "Applies to: Entity beans". Does this mean that the only ActionForm implementations xdoclet supports are implemented as EJBs?

Is it reasonable for me to think that I'll be able to generate my entire struts-config.xml file via xdoclet? I would think so. Or am I going to have to define things like my non-EJB ActionForm subclasses, global-forwards, controller and message-resources in struts-config.xml and have xdoclet add the rest?

TIA


------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user






-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user






-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to