Martin Cooper wrote:
On Thu, 17 Jun 2004, Mark R. Diggory wrote:
I just finally joined the dev list
Welcome!
, so pardon if this might be an old subject but...
It's been discussed a few times.
I came up with a simple Extension to ActionForward to manage the addition of parameters in the forwards request and posted it on the wiki. I have a version with even more functionality which allows the replacing and removal of parameters and specific values of a parameter. Is this something the project would have an interest in?
What is the purpose of the constructor which takes a request? Given that any request parameters will still exist as parameters if the request is forwarded, I would expect the original parameters to be duplicated if this constructor is used and the request is forwarded. No?
Wow, I tested it, and your right. This will only work for a redirect, otherwise it duplicates the parameters (logical, and an oversight on my part).
I think the answer to what the behavior should be in this case, and in the case of the feature request in bug tracking can be seen in the basic behavior of the jsp taglibrary:
-- Martin Cooper
In the following case, the forward supplies only the "test2" parameter. Whereas:
<jsp:forward page="Test2.jsp"> <jsp:param name="test2" value="test2"/> </jsp:forward>
This forward supplies the parameters that were in the original request. <jsp:forward page="Test2.jsp"/>
So this sort of thing has been considered before, prior to Struts... Its Apache code, or its probibly accessable in the JSP spec if it is not?
-Mark
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]