The following comment has been added to this issue:

     Author: Haroon Rafique
    Created: Thu, 10 Feb 2005 2:52 PM
       Body:
Please be aware that applying XDT-498 does break something. In my case, my 
validation.xml was almost cut in half after applying XDT-498. Any other ideas?
---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-715?page=comments#action_15950

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-715
    Summary: Re-think struts.action and struct.action-forward!
       Type: Improvement

     Status: Open
   Priority: Critical

 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: Tai Wai Wang

    Created: Tue, 18 Nov 2003 12:49 AM
    Updated: Thu, 10 Feb 2005 2:52 PM
Environment: Win2K

Description:
I have one Struts Action Class. It maps to two different forms, and forward to 
two different path if success. ie.
1. /company/action -> CompanyForm -> CompanyAction -> Success = /result1
2. /company/search -> CompanySearchForm -> CompanyAction -> Success = /result2

However, XDoclet cannot configurate the action-forwards to corresponding 
action. Eg:

/**
 * @struts.action
 *      name = "companyForm"
 *      path = "/company/action"
 *      scope = "request"
 *      validate = "true"
 * @struts.action-forward 
 *      name = "success"
 *      path = "/result1"
 * @struts.action
 *      name = "companySearchForm"
 *      path = "/company/search"
 *      scope = "request"
 *      validate = "true"
 * @struts.action-forward 
 *      name = "success"
 *      path = "/result2"  
 */
public class CompanyAction extends BaseAction {


The structs-config.xml would be:
    <action
      path="/company/action"
      type="xxxxx.web.struts.action.CompanyAction"
      name="companyForm"
      scope="request"
      unknown="false"
      validate="true"
    >
      <forward
        name="success"
        path="/hello1"
        redirect="false"
      />
      <forward
        name="success"
        path="/hello2"
        redirect="false"
      />
    </action>
    <action
      path="/company/search"
      type="xxxxx.web.struts.action.CompanyAction"
      name="companySearchForm"
      scope="request"
      unknown="false"
      validate="true"
    >
      <forward
        name="success"
        path="/hello1"
        redirect="false"
      />
      <forward
        name="success"
        path="/hello2"
        redirect="false"
      />
    </action>

action-forward should have dependence on action


---------------------------------------------------------------------
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



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to