Hello, I am trying to redirect to an action when the default index page is navigated to. However, I want to include the post params so they are sent to the action. Here's what I've got so far:
This is the action that I want to redirect to. If I call it directly, it works as expected. <action name="submitXmlLicenseRequest" class="net.toltech.webapps.activation.SubmitXmlLicenseRequestAction"> <interceptor-ref name="sessionScopeDefaultStack" /> #{ 'licenseRequest' : 'xmlLicenseRequest' } <result name="error">/WEB-INF/jsp/submitXmlLicenseRequest-error.jsp</result> <result name="success" type="chain">submitLicenseRequest</result> </action> This is the redirect action. it redirects to the action, but the post parameter isn't set. <action name="index" class="com.opensymphony.xwork2.ActionSupport"> <result name="success" type="redirect-action">submitXmlLicenseRequest</result> </action> Here are a few different ways I've tried to get it to work. All of these end up giving me a Premature end of file Fatal Error. <action name="index" class="com.opensymphony.xwork2.ActionSupport"> <result name="success" type="redirect-action">submitXmlLicenseRequest?licenseRequest=${licenseRequest}</result> </action> <action name="index" class="com.opensymphony.xwork2.ActionSupport"> <result name="success" type="redirect-action">submitXmlLicenseRequest?licenseRequest=${Parameters.licenseRequest}</result> </action> <action name="index" class="com.opensymphony.xwork2.ActionSupport"> <result name="success" type="redirect-action"> submitXmlLicenseRequest ${licenseRequest} </result> </action> <action name="index" class="com.opensymphony.xwork2.ActionSupport"> <result name="success" type="redirect-action"> submitXmlLicenseRequest ${Parameters.licenseRequest} </result> </action> Thanks for any suggestions! Kelly -- View this message in context: http://www.nabble.com/Struts2-redirect-action-with-post-params-tp24207810p24207810.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org