XDoclet has no possibility to tell which 
forward belongs to which  action mapping....

( it would require some parameter on mapping 
xdoclet-tag ) 


So xdoclet tags for struts may need improvement. 

BTW, webwork stuff does not suffer from this problem, 
because forwards are defined on the same tag like:

@webwork.action name="foo" success="/bar/" 
error="/baz/" input="/bang/" 
forwards="tweek=/twak/,barf=/bla/"
...

regards,
--- "Damm, Gary" <[EMAIL PROTECTED]> wrote:
> I have two action tags defined in a single action
> class.  Each action
> has it's own action-forward element.  When the
> struts-config.xml is
> generated it generates two action elements but each
> action element has
> both action forwards (each should only have one).  
> 
> /**
>  * @struts.action 
>  * path="/HomeLink"
>  * 
>  * @struts.action-forward
>  * name="success"
>  * path="/UserSearch.jsp"
>  * 
>  * @struts.action 
>  * path="/UserCreateLink"
>  * 
>  * @struts.action-forward
>  * name="success"
>  * path="/UserCreate.jsp"
>  * 
>  */
> 
> generates this:
> 
>     <action
>       path="/HomeLink"
>       type="foo.bar.SuccessAction"
>       unknown="false"
>       validate="true"
>     >
>       <forward
>         name="success"
>         path="/UserSearch.jsp"
>         redirect="false"
>       />
>       <forward
>         name="success"
>         path="/UserCreate.jsp"
>         redirect="false"
>       />
>     </action>
>     <action
>       path="/UserCreateLink"
>       type="foo.bar.SuccessAction"
>       unknown="false"
>       validate="true"
>     >
>       <forward
>         name="success"
>         path="/UserSearch.jsp"
>         redirect="false"
>       />
>       <forward
>         name="success"
>         path="/UserCreate.jsp"
>         redirect="false"
>       />
>     </action>
> 
> but I want this:
> 
>     <action
>       path="/HomeLink"
>      
>
type="com.qualcomm.bds.usermgr.web.action.SuccessAction"
>       unknown="false"
>       validate="true"
>     >
>       <forward
>         name="success"
>         path="/UserSearch.jsp"
>         redirect="false"
>       />
>     </action>
>     <action
>       path="/UserCreateLink"
>      
>
type="com.qualcomm.bds.usermgr.web.action.SuccessAction"
>       unknown="false"
>       validate="true"
>     >
>       <forward
>         name="success"
>         path="/UserCreate.jsp"
>         redirect="false"
>       />
>     </action>
> 
> 
> Is there a way to identify that a forward tag
> belongs with a specific
> action so when the struts-config.xml is generated
> each action element
> only has a single forward associated with it?
> 
> Thanks in advance,
> Gary
> 
> 
>
-------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback
> Program.
> Does SourceForge.net help you be more productive? 
> Does it
> help you create better code?  SHARE THE LOVE, and
> help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to