Allen Gilliland wrote:
when chaining from one action to another, why is struts2 trying to lookup the "input" result on action2 before ever executing my action method?

i have a simple config, like the examples in the documentation ...

<action name="members!*" method="{1}"
        class="org.apache.roller.ui.authoring.struts2.Members">
    <result name="list" type="tiles">.Members</result>
</action>

<action name="invite!*" method="{1}"
        class="org.apache.roller.ui.authoring.struts2.MembersInvite">
    <result name="input" type="tiles">.MembersInvite</result>
    <result name="disabled" type="tiles">.disabled</result>
    <result name="success" type="chain">members</result>
</action>

when i execute the 'invite' action it stores an invitation in the db and adds an action message to notify the user and then i return SUCCESS, which should just chain to the execute() method of my 'members' action right?

well when i do this everything works properly in the 'invite' action and through debugging i can see that my 'members' action class is instantiated as if it's going to be executed, but the execute() method is never called and struts2 gives an error about not being able to find the "input" result on my 'members' action. why is this happening?

No result defined for action org.apache.roller.ui.authoring.struts2.Members and result input

Well, firstly, you don't have a result named 'input' on your members action... but I guess you're more interested in why Struts is looking for it :-)

Does the members action have any conversion or validation configured? Struts will automatically forward to the 'input' result if errors occur during conversion or validation. If that's not it, you'll need to post more details, such as your action code and anything written to the logs as the request is being processed.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to