2012/10/19 Srineel Mazumdar <[email protected]>:
> Hi,
>
> I am trying t rewrite the jpetstore project in Struts 2. I am referring to
> the Struts 1 implementation of the petstore project. I am having the
> following problem :
>
> There is an entry :
>
> <action path="/shop/editAccount"
> type="org.springframework.samples.jpetstore.web.struts.EditAccountAction"
> name="workingAccountForm" scope="session" validate="true"
> input="/WEB-INF/jsp/struts/EditAccountForm.jsp">
> <forward name="success" path="/shop/index.do"/>
> </action>
>
> in strutsconfig.xml. What should be the equivalent entry in struts.xml for
> this entry in Struts1 ?
<action name="editAccount" namespace="/shop"
class="org.springframework.samples.jpetstore.web.struts.EditAccountAction">
<result type="redirectAction>
<param name="actionName">index</param>
<param name="namespace">/shop</param>
</result>
<result name="input">/WEB-INF/jsp/struts/EditAccountForm.jsp</result>
</action>
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]