You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Edward Song <ed...@nuhorizons.com> on 2009/04/30 20:30:58 UTC

tag.

Thanks in advance for reading,

I have a register.jsp page.  Here is a short snippet.

<s:form theme="xhtml" action="/user/save" validate="true">
    <%-- other unrelated fields here --%>
    <s:action name="states" namespace="/resources" executeResult="true"/>
    <s:submit value="Create %{domainModelObjectName}"/>
</s:form>

The action is simply a method that sets a List of states and forwards
it to a jsp to be rendered.
The action mappings are not defined through the struts.xml, but are
defined by the naming conventions as defined by the ConventionPlugin.

When a request is first made to register.jsp, I find that the action
(/resources/states) is successfully executed.
The action class (StatesAction) executes and the result (states.jsp)
is rendered.

When I submit the form to (/user/save), the appropriate action is
executed and dispatches back to the same register.jsp above on error.

Everything executes as expected, however, when the action tag is
executed again, the action class (StatesAction) does NOT execute only
the result (a jsp) is rendered.

I have a debug point at the action tag, and I see that the action
class's execute method does not execute.

I am using the ConventionPlugin methodology and it seems inconsistent
on how a mapped resource is found.

Does anyone have any insight or a resource to point me too.  I'm
currently looking at Struts 2 documentation.

Regards,
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org