By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,653 Members | 1,483 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,653 IT Pros & Developers. It's quick & easy.

css link to jsp

oll3i
100+
P: 679
Hello,

Why when i ctrl - click inside the project the link to css it shows css file, but when i run the project css doesn't load.

Please help
Aug 22 '13 #1
Share this Question
Share on Google+
4 Replies


Nepomuk
Expert 2.5K+
P: 3,112
This is probably due to the CSS file either not being deployed with the JSP or the path given in your JSP being incorrect. So the big question is: Where is the CSS file in your application?
Aug 22 '13 #2

oll3i
100+
P: 679
it is in aplicationName - build - web - cssfile

Thank You
Aug 22 '13 #3

Nepomuk
Expert 2.5K+
P: 3,112
OK, not knowing the exact file structure of your project, I'd guess you have to include the CSS with a command something like this:
Expand|Select|Wrap|Line Numbers
  1. <link rel="stylesheet" href="${pageContext.request.contextPath}/web/project.css"/>
You may have to experiment with the path a bit, I'm not 100% sure what it is supposed to be; but I'm sure you'll be able to find it as a child of the context path.
Aug 23 '13 #4

oll3i
100+
P: 679
Thank You i solved it :)
Aug 23 '13 #5

Post your reply

Sign in to post your reply or Sign up for a free account.