This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
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: 62488
    
  68

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apply css when jsp is under WEB-INF folder