This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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

Win a copy of Head First Android this week in the Android forum!
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
Ranch Hand

Joined: Apr 04, 2009
Posts: 659

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 agree. Here's the link:
subject: Css External Style Sheets Location
It's not a secret anymore!