This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Css External Style Sheets Location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Css External Style Sheets Location" Watch "Css External Style Sheets Location" New topic

Css External Style Sheets Location

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
When I double click on the icon for APage.html the <h1> is displayed in green - OK.
When I invoke APage.html from a servlet <h1> is displayed in black.
Where should I place my style sheet ?
Thank you for any help.

C:\apache-tomcat-6.0.18\webapps\HR\WEB-INF\View\APage.html :

C:\apache-tomcat-6.0.18\webapps\HR\WEB-INF\View\css\default.css :
Karthik Shiraly

Joined: Apr 04, 2009
Posts: 671

If your webapp URL is
and browser sees a relative href like "css/default.css" it requests the server for

So the /css directory should be under C:\apache-tomcat-6.0.18\webapps\HR.
Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
Your'e right. Thank you.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Css External Style Sheets Location
It's not a secret anymore!