wood burning stoves 2.0*
The moose likes JSP and the fly likes Apply css when jsp is under WEB-INF folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Apply css when jsp is under WEB-INF folder" Watch "Apply css when jsp is under WEB-INF folder" New topic
Author

Apply css when jsp is under WEB-INF folder

Mike Nason
Greenhorn

Joined: Apr 19, 2006
Posts: 20
Hello!
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?

Wanna code??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Apply css when jsp is under WEB-INF folder
 
Similar Threads
How to put jsp files in a folder in a web project?
RAD 7 creating project with existing directories
problem with webapp directory structure
Style Sheet Problem in Websphere
Linkking css & js to jsp in struts