struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Zduniak" <mar...@zduniak.com>
Subject Dynamic parameters in struts.xml
Date Tue, 01 May 2007 15:35:36 GMT
Hello everyone,

  I am using Struts2 and I am curious how to pass dynamic parameter
values to an action. I have following XML snippet:

		<action name="otherDeposite"
			class="com.zduniak.web.actions.OtherDepositeAction">
			<result name="back" type="redirect-action">
				<param name="actionName">accountsList</param>
			</result>
			<result name="next" type="redirect-action">
				<param name="actionName">accountsList</param>
				<param name="myParameter">myValue</param>
				<param name="myParameter2">{#myValue}</param>
				<param name="myParameter3">{myValue}</param>
				<param name="myParameter4">%{myValue}</param>
				<param name="myParameter5">${myValue}</param>
				<param name="myParameter6">%{#myValue}</param>
			</result>
			<result name="input">/jsp/otherDeposite.jsp</result>
		</action>

myValue is a getter method in OtherDepositeAction action class.
Unfortunately none of these expressions are properly exchanged into
value from myValue property.

Is there any solution to passing dynamic parameters while redirecting
to another action ?

Thank you and kind regards,

-- 
Marcin Zduniak                    marcin@zduniak.com
+ 48 600 27 88 66             http://www.zduniak.com

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


Mime
View raw message