struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DurgaPrasad Guduguntla" <>
Subject Appending params to the URL of ActionForward
Date Fri, 06 Jun 2003 00:31:14 GMT

I am new to struts and would like to know the solution to the following:

When the request is submitted to the action class, the action class will
evaluate and constructs the request parameters which needs to be
appended to URL of the View component mentioned in the forward target.

<action path="/process" type="SomeAction">
 <forward name = "success" path="jsp/content.jsp"/>
 <forward name = "failure" path="jsp/failure.jsp"/>

Depending upon the logic inside action class, there might be different
request parameters are obtained and the path of the url for the
"success" target should go like this:

 path = "jsp/content.jsp?param1=val1&param2=val2" (OR)

Can we set the path for ActionForward by using
ActionForward.setPath()before returning inside Action class?  What could
be better approach to this problem?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message