Message:

   The following issue has been re-assigned.

   Assignee: René Zanner (mailto:[EMAIL PROTECTED])
---------------------------------------------------------------------
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: René Zanner
   Reporter: Tai Wai Wang

    Created: Tue, 18 Nov 2003 12:49 AM
    Updated: Thu, 9 Jun 2005 3:49 AM
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



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to