I’m using tomcat and have a couple jsp pages. I’m wondering if it’s possible to show a different url other than real patch(folder structure) in browser.
for example.
www.abc.com/test/test.jsp (this is real path)
display is as www.abc.com/welcome
so when user enter www.abc.com/welcome, he/she will actually see the test.jsp page
I know there is urlrewriter which i tried already, it bascially redirect to another page. i guess it’s not helpful in my case.
any suggestion?
Of course you can, you have a file name
pretty-config.xml.With this file you can show a different url other than real patch.
Example:
With these two simple lines of configuration, the user sees: pattern=”/mySite/” in the browser URL and in the output HTML, but the server is actually rendering the resource: /faces/sites/mySite.jsf
the actual location of the page on the server.
You can find information here