i have try it ,  no problem happen

this is my config

<struts>

 <package name="struts2" extends="struts-default">

  <default-action-ref name="test" />
  <default-class-ref class="struts.action.TestActionSupport" />
  <action name="test" class="struts.action.TestAction">
   <result>test.jsp</result>
  </action>

 </package>
</struts>

public class TestAction {
 private static final long serialVersionUID = -2818133285465497272L;

 public String execute() throws Exception {
  return Action.SUCCESS;
 }

}

public class TestActionSupport extends ActionSupport {
}
gordian

On Sun, Apr 13, 2008 at 9:29 PM, Décio Heinzelmann Luckow <
[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I was testing the tag <default-action-ref> to configure the default action
> mapping for a package, without success, then I search Struts Jira for
> something about this and find the WW2525.
>
> The WW2525 is closed with the argument that this tag is used to configure
> the default class to be used when an action mapping don't specify the
> class.
>
> I disagree with this because we have this tags:
> <default-class-ref>
> and
> <default-action-ref>
>
> I think that <default-class-ref> is to set de default class of mapping
> without class, and not <default-action-ref>
>
> The file xwork-default.xml use <default-class-ref> to set ActionSupport
> <default-class-ref class="com.opensymphony.xwork2.ActionSupport" />
>
> And really, in my tests the default-action-ref don´t runs correctly.
>
> This ocurred with someone too?
>
> Thanks
>
> Décio Heinzelmann Luckow
>

Reply via email to