Drew McAuliffe wrote:
I do this sort of thing a lot. I'm not sure if the approach you're taking in your xwork file is the right way but it could be. I do know that I've had success with the following:
 
    <action name="foo" class="test.FooAction">
      <!-- results -->
      <result name="input" type="redirect">
        <param name="location">/test.jsp?objId=${objId}</param>
        <param name="parse">true</param>
      </result>
      <interceptor-ref name="workflowStack"/>
    </action>

I'm using the "parse" property to make sure that the ${} value is parsed out. Also, I'm using the "redirect" result type (dispatcher is just the normal jsp dispatcher, and it sounds like you wanted the redirect). As I said, I'm not sure if specifying the parameter separately for "objId" as part of the result will work, because I'm not sure if it will get parsed. I'm pretty sure that the static params interceptor is what allows you to separately specify the parameter as you've done, so maybe that has some parsing ability.

Drew, have you been succesful in passing multiple parameters in this manner?

Thanks,
-Mark

Reply via email to