Kevin Olome wrote:Hello,
when I use the request dispatcher forward method, the resulting url always contains the name of the controller.
How can I remove it?
Steps (e.g. Register):
1. User clicks on register than hidden input field sends "event" to MvcController:
2. MvcController will call the process method on a subclass of EventHandlerBase.
But it's not the forward() method which is producing that URL. That URL is the one coming from your <form> tag, which is why you see it at the top of your browser. The fact that a forward is happening on the server has no effect on that. And that's how browsers work, what you see at the top is the last URL which it sent a request to. That means that clicking "Refresh" on the browser will send the same request again.
So why do you want to subvert the normal way the browser works? What's wrong with showing the requested URL?