Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Importing CSS in JSP's  RSS feed

 
Abhishek Dwaraki
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm actually using JSF tech with a JSP template and need to import some Style Sheets. There is actually no error but at the same time there is no change in the style of the components I've used. Plz advice in this regard. I've used the <LINK> tag in my JSP sheet. Thanks in advance.
[ February 15, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Crystal ball not working tonight. How about showing us the <link> tag and describing where the css file is located?
 
Abhishek Dwaraki
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<link href="css/mm.css" rel="stylesheet" type="text/css"> in the <head> section...

<h:commandButton value="Sign Me Up!!!" action="#{registrationController.register}" id="cmdSubmit" style="width: 100px" styleClass="buttonTextSmall" /> ----- This is actually a JSF tag I've used in the JSP page.

CSS files r located in my WebRoot direstory. All those r present. Its called mm.css under WEBROOT/CSS and has a user defined tag 'buttonTextSmall'.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd ditch the relative reference for an absolute one. That unbinds dependencies that can trip you up.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and if working under unix, check the lowercase/uppercase of the path.
css/mm.css -> CSS/mm.css
 
Abhishek Dwaraki
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot guys... It worked. Changed it to an absolute reference and it worked fine. Thanks a lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!