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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -