You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Filipe David Manana <fd...@ieee.org> on 2007/12/20 23:44:54 UTC

Struts2 redirect action result type and URI query string

Hi,

I want to do a redirection to an action based on the result name of some
other action.
The problem is that I want to pass a number of parameters that I don't know
in advance how many they are (neither their values).
I have only a query string available (like ?p1=v1&p2=v2&ord=1 ...).
I have the name and namespace of my action. Can I somehow append the query
string to the URI generated by the result element?
My code is the following:

<action name="login" class="action.Login">
  <result name="success" type="redirect-action">
     <param name="actionName">${actionName}</param>
     <param name="namespace">${actionNameSpace}</param>
     <param name="parse">true</param>
  </result>
</action>


Thank you,

-- 
Filipe David Manana,
fdmanana@ieee.org

Obvious facts are like secrets to those not trained to see them.