Piero Sartini wrote:
I have the following situation:
a searchfield is on top of a table presenting results. if there is only one result, the user should be redirected without the need of clicking on the list..

now my problem is how to redirect to an action and passing a parameter from within my original action..

I am working around this by putting the ID information into the user session ... but I am sure there is a cleaner way of doing this ;)

You can pass the parameter through the action mapping. For example:

  <action name="..." ...>
    <result ...>/redirect/to/here?param=${rowId}</result>
  </action>

and add a getRowId() method to the associated action class.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to