javascript - how should I define a path in jsp where my .js & css is located in different location -



javascript - how should I define a path in jsp where my .js & css is located in different location -

i have bunch of jsp files, js files , css files. these files placed in tomcat server in webapps directory. presently in current project have jsp's located in 1 location , js, css located in different location shown in below image. can help me how include js path relative path.

so please give me suggestions path should in relative.

thanks in advance

i solved it, specifying below in jsp.

/...

when specify / goes root directory.

here code snippet.

<link href="/resource2/765432/myproject/css/myproject.css" media="screen" rel="stylesheet" type="text/css" />

thanks helping , if needs help on this, ready help.

javascript css jsp jsp-tags jspinclude

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -