CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 20th, 2003, 01:12 PM
johannloubser johannloubser is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 12 johannloubser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question CSS link in JSP

for some reason my <link> tags to css files are ignored in my jsp's. my styles are ignored and i get the defaults.

any ideas.

Reply With Quote
  #2  
Old August 20th, 2003, 01:18 PM
fgeller's Avatar
fgeller fgeller is offline
:(){ :|:&};:
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Germany
Posts: 297 fgeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 4 m 52 sec
Reputation Power: 5
Send a message via ICQ to fgeller
how do you know it only does not work for jsp's?
does the style file really exist?
is it the correct path? did you consider the "\" and "/" ?
Could you post some code to make this easier to understand?
Is your CSS syntax correct?
__________________
regards >_<

ws. fgeller.de
em. felix@fgeller.de

Reply With Quote
  #3  
Old August 20th, 2003, 01:26 PM
johannloubser johannloubser is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 12 johannloubser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hey
yeah...the thing is...i created the jsp without any java code, only html saved as a .jsp , thn when i started coding the Java into it, it started ignoring the css . so the CSS is fine, it worked, until i started adding the Java.

is there a specific place where i have to add the <link> tag, eg. before the <body>, in the <head>?

Reply With Quote
  #4  
Old August 20th, 2003, 01:50 PM
johannloubser johannloubser is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 12 johannloubser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
maybe this is the problem :
when i access the jsp directly(typin in the path in browser), it applies the link style sheet.

however, i access the jsp via a servlet with a RequestDispatcher, and when i do it this way it ignores the stylesheet.

Reply With Quote
  #5  
Old August 20th, 2003, 01:52 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
the link tag goes in the head. Post your link tag. Is the URI a relative path? If so, relative to what - the document or the web root? One problem could be that you are not accounting for the context path of the app server.

Reply With Quote
  #6  
Old August 20th, 2003, 01:58 PM
johannloubser johannloubser is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 12 johannloubser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i tried different paths, it was relative path. the css file is in the root diretory of my web-app. i had the path as "transpay.css" , changed it to "../transpay.css" and now it works.

thanks for the help

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS link in JSP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway