SURESH GUDIVADA wrote:
Hi,
I have tried using request.getRequestDispatcher.forward() and returning the
actionforward to null
I used the below code
String customURL = getcustomURL();
RequestDispatcher req = request.getRequestDispatcher(customURL);
req.forward(request, response);
But it is not working. it always pre-pends the web app name and module name
before the customURL and I need to forward to dynamically created remote
URL.
Any suggestions greatly appreciated
Assuming that, by remote URL, you mean a URL pointing to a resource
outside the current web app, you can't use a forward. You can only
forward to a resource within the same web app.
You'll need to send a client-side redirect instead or, if that's not an
acceptable solution, you'll have to make the HTTP request directly, and
stream the response back, in the action.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]