The following comment has been added to this issue:

     Author: Matt Raible
    Created: Thu, 23 Sep 2004 2:45 PM
       Body:
I've seen this in my own development - but I use it as a feature rather than a bug.  
I'm sure this happens on other tags where you can specify multiple tags.  For example, 
I saw last night that if you have 2 @struts.form tags - and you add an "extends" 
attribute to one - it's used by both.  How do other modules handle this?

I could look into fixing this, but I'm somewhat afraid that folks are using this 
"feature".  For instance, I have 3-4 @struts.action mappings on my classes, but only 2 
@struts.action-forwards.  If I were to fix this, my XDoclet code would double in size 
b/c I'd have to put have 3-4 @struts.action mappings + 2 action-forwards for each one.

Here's a proposed solution:

Add an "id" attribute (or something similar) to both @struts.action and 
@struts.action-forward that would allow linking the two.  This would allow users to 
get fine-grained if they like, but maintain existing functionality.

Whaddya think? 

---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-740?page=comments#action_14931

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-740

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-740
    Summary: Multiple struts action can not be mapped to a single class
       Type: Bug

     Status: Open
   Priority: Blocker

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Apache Module
   Versions:
             1.2 Beta 3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Jordi Martin

    Created: Wed, 17 Dec 2003 6:28 AM
    Updated: Thu, 23 Sep 2004 2:45 PM
Environment: Windows 2000, Ant task

Description:
I've got some Action classes providing an unique action/feature,
but should follow different paths depending on the path they are
requested. It works writing by hand the struts-config.xml, but 
when porting to xdoclet I wrote the following tags:

 ............
 * @struts.action
 *              name="action.query.types"
 *              path="/actions/query/types"
 * @struts.action-forward
 *              name="success"
 *              path="/tiles/query/types.do"
 ...........
 * @struts.action
 *              name="action.query.directtypes"
 *              path="/actions/query/directtypes"
 * @struts.action-forward
 *              name="success"
 *              path="/tiles/query/directtypes.do"
 ...........

which become in two actions but they both have the other's forwards
and exceptions elements. A quick dirty workaround I found was to
modity the struts_config_xml.xdt file with an ..action2 elements that
I know it is very, very dirty.. but I didn't know how to do it with
xdt.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to