Try this,

ActionForward fwd = null;
StringBuffer path = new StringBuffer(forward.getPath());
path.append("?" + urlQueryString);

fwd = new ActionForward( mapping.findForward("success").getPath() +
path.toString);

return fwd ;


Vangos...



----- Original Message -----
From: "Srinivas Gunturu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 9:00 PM
Subject: How to pass urlparameters to findForward?


Hi,

I need to pass parameters depending on user action to my findForward.

I have tried the following but does not seem to be working.

String urlQueryString = getURLParameters(nextURL);
if ( urlQueryString != null && urlQueryString.length() > 0 ) {
    ActionForward forward = aMapping.findForward(nextURL);
    StringBuffer path = new StringBuffer(forward.getPath());
    path.append("?" + urlQueryString);
    forward = new RedirectingActionForward(path.toString());
    return forward;
} else {
    return aMapping.findForward(nextURL);
}

I have also tried setting my parameters on request using
request.setAttribute

This also did not work.

I have also searched on net for 2 hours and no luck.  Please help!

TIA

Sriniavs


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to