Mark Menard's excellent Struts 2 Cookbook shows you how to do this.
http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect
If you've never seen his Cookbook, I definitely recommend taking a
look. It's got some great tips.
On Sep 24, 2007, at 11:02 AM, Xibin Liu wrote:
Hi, I set an attribute in the request in the action code, and I
want to
use it in the struts.xml (see below). How can I reference it at the
place marked by ***?
<action name="actionname" class="classname">
<result type="redirect">
<param name="location">***</param>
<param name="parse">true</param>
</result>
</action>
I tried #request.attname, it did not work.
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]