This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apply css when jsp is under WEB-INF folder

 
Mike Nason
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64194
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic