aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Css External Style Sheets Location" Watch "Css External Style Sheets Location" New topic
Author

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: 513
    
    6
If your webapp URL is
http://localhost:8080/HR
and browser sees a relative href like "css/default.css" it requests the server for
http://localhost:8080/HR/css/default.css

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: http://aspose.com/file-tools
 
subject: Css External Style Sheets Location