Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Css External Style Sheets Location

 
Graeme Byers
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1208
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your'e right. Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic