I am forwarding from one Action to Another. I need to tweak the request
parameters. Is there a way to do this?
I tried to set the reqest value by calling the FormBean and set it from the
action. But, it doesn't carry over to the next Action. I can't find a way to
change the request parameters.
A little more research and I find that it is not possible and that I need to
rebuild the and redirect. Cheezy.
-Original Message-
From: Phase Communcations [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 5:08 AM
To: Struts Users Mailing List
Subject: Changing Request
- Original Message -
From: Phase Communcations [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 22, 2002 12:16 PM
Subject: NEVERMIND: Changing Request Parameters
A little more research and I find that it is not possible and that I need
to
rebuild
Phase Communcations wrote:
I tried to set the reqest value by calling the FormBean and set it from the
action. But, it doesn't carry over to the next Action. I can't find a way to
change the request parameters. Please help.
The trick is to put a switch on your form bean to make it immutable.
Since you're forwarding from Action to Action, you do have a minor issue. Things
you set in the request will be reset after the forward.
Solution 1: add what you need to the session.
Solution 2: extend ActionForward with a subclass that takes a map of name value
pairs to stick in the request.
5 matches
Mail list logo