struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph vd Houdt" <ra...@ezcompany.nl>
Subject parameterized redirecting forward
Date Thu, 01 Nov 2001 10:44:11 GMT
Hi All,

I am trying to define a redirecting forward in the struts-config.xml. But I
need some parameters that are on the form to redirect the action. Is there a
way to add parameters to the redirecting request?

An example:

        <action  path="/postTopic"
                 name="createNewTopicClosedForumForm"
                 type="com.example.CreateNewTopicAction"
                scope="request"
                input="/postTopic.jsp"
                validate="true">
            <forward  name="success"  path="/viewForum.jsp"
redirect="true"/>
        </action>

I want the new redirected request to be "/viewForum.jsp?forum=<dynamic
value>".
The forum value is on the available on the form and initialy posted to
postTopic.jsp

Does anyone know a solution?

Greetings Ralph





--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message