How do I alter the URL?

Posted by CitadelCSCadet on Stack Overflow See other posts from Stack Overflow or by CitadelCSCadet
Published on 2010-04-13T19:30:04Z Indexed on 2010/04/13 19:33 UTC
Read the original article Hit count: 358

Filed under:
|
|

I'm currently working on a big web application for a company and we are about 4 months in, but we have a harmless(but annoying) problem that we have just left because we didn't time to change it.

The way we setup our MVC is leaving us with the Servlet being stacked one after the other endless amounts of times on the URL so if we had a Servlet named "ControllerServlet" and I did something on the website I would get a result such as this the first time.

WebsiteXXXXXXX.com/XXX/ControllerServletXXXX

And the next time I were to do something everything will work fine, but the URL will stack the ControllerServlet Path like this..

WebsiteXXXXXXX.com/XXX/ControllerServlet/ControllerServlet/XXXX

WebsiteXXXXXXX.com/XXX/ControllerServlet/ControllerServlet/ControllerServlet/XXXX

and so on....

Although it is working perfectly fine, something is obviously not right.

I imagine this is an easy fix, but could really use somebodies help.

Thanks alot

© Stack Overflow or respective owner

Related posts about jsp

Related posts about mvc