Java EE web application, link to the project's root folder -


in java webapp, create link main page :

<a href="/"> main title... </a> 

but i'm redirected http://myserver.com:8080/ , i'd redirected http://myserver.com:8080/myprojectname/

how can without writing every link

<a href="/myprojectname/mypagealias"> main title... </a> <a href="/myprojectname/mypagealias2"> main title... </a> <a href="/myprojectname/mypagealias3"> main title... </a> 

but

<a href="/mypagealias"> main title... </a> <a href="/mypagealias2"> main title... </a> <a href="/mypagealias3"> main title... </a> 

nb : i'm not using spring or whatever...

thanks


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -