Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CSS not being recognized.. Struts application ..

 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I was developing a web project based on struts . I developed individual jsp include files for different sections of the main layout and placeed the css file in a separate folder ./includes/css .However now , the css is not being reflected onto the jsp pages . It maybe a very simple issue . but its baffling me . . I ve attached a screen shot of the directory structure . And the code for the jsp and the css .Please advise.

Thanks in advance.


JSP--




DirectoryStructure.JPG
[Thumbnail for DirectoryStructure.JPG]
Directory Struc
 
srikanth arroju
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i could not find includes as a folder in Your application. if includes is a app/WAR name then your referencing a link is correct
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Srikanth ,
Thanks for the reply. But i dont understand what you mean .The file path to the css file is set properly if that is what you meant .
Any further help would be great.
 
Shashank Ag
Ranch Hand
Posts: 88
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are writing wrong path to css it should be

<link rel="stylesheet" href="/css/WSS.css" type="text/css"></link>
 
Shashank Ag
Ranch Hand
Posts: 88
Java Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srikanth arroju wrote:i could not find includes as a folder in Your application. if includes is a app/WAR name then your referencing a link is correct

Srikanth Arroju you are wrong about this. You can either write full url or relative url in href but not half url.
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!