File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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: 61010
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apply css when jsp is under WEB-INF folder