A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
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 jsp?
Author and ninkuma
Joined: Jan 10, 2002
Apr 26, 2010 09:50:27
You should not be using page-relative addressing in any
, 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
Style Sheet Problem in Websphere
problem with webapp directory structure
Linkking css & js to jsp in struts
RAD 7 creating project with existing directories
How to put jsp files in a folder in a web project?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014