You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Derek Faulkner <df...@guidewire.com> on 2004/01/22 17:12:55 UTC
forwards with parameters?
Hello,
I want to create a forward in my ActionMappings with url parameters like this:
<forward name="somename" path="SomeAction.do?someparameter=somevalue"/>
This worked with Tomcat 3.3.1, but with Tomcat 4.1 the values in the query string are not in my SessionRequest parameter table. Why is this? What can I do about it?
Thanks,
Derek
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: forwards with parameters?
Posted by Raphaƫl di Cicco <ra...@atosorigin.com>.
In my opinion this is a bad way to use forwards. Only the client is supposed
to enter parameters.
You should do request.setAttribute("someparameter",somevalue); in your
Action before forwarding.
----- Original Message -----
From: "Derek Faulkner" <df...@guidewire.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, January 22, 2004 5:12 PM
Subject: forwards with parameters?
> Hello,
>
> I want to create a forward in my ActionMappings with url parameters like
this:
>
> <forward name="somename" path="SomeAction.do?someparameter=somevalue"/>
>
> This worked with Tomcat 3.3.1, but with Tomcat 4.1 the values in the query
string are not in my SessionRequest parameter table. Why is this? What can
I do about it?
>
> Thanks,
> Derek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org