struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Rewriting an application in Struts2 from Struts 1
Date Fri, 19 Oct 2012 06:04:33 GMT
2012/10/19 Srineel Mazumdar <smaz19584@gmail.com>:
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message