A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Apply css when jsp is under WEB-INF folder
Joined: Apr 19, 2006
Apr 26, 2010 09:48:36
When my JPS files are in WEB-INF/jsp (preventing to access them directly) I can't apply css files to them!
I wrote <link rel="stylesheet" type="text/css" media="screen" href="../../styles/global.css"> - it doesnt work!
Where can I put css files and how to link them from
Author and ninkuma
Joined: Jan 10, 2002
Apr 26, 2010 09:50:27
You should not be using page-relative addressing in any JSP, regardless of whether it's under WEB-INF or not.
See the JSP FAQ for information on forming proper server-relative URLs for images, stylesheets and the like.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Apply css when jsp is under WEB-INF folder
problem with webapp directory structure
How to put jsp files in a folder in a web project?
RAD 7 creating project with existing directories
Linkking css & js to jsp in struts
Style Sheet Problem in Websphere
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014