How to Attach styleSheet.css in tomcat (Servlet)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sundhas
    New Member
    • Dec 2009
    • 13

    How to Attach styleSheet.css in tomcat (Servlet)

    Hey! I have made a webpage in Servlet and now i want to add a stylesheet.css to it Where should i exactly put the .css file ? like in ROOT of tomcat or some where else and what exact path i have to use??

    link href='style.css ' rel='stylesheet ' type='text/css'

    Thanks Sundhas
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    it doesn’t matter where, as long at it is accessible (that is, not outside the server root)

    Comment

    • Sundhas
      New Member
      • Dec 2009
      • 13

      #3
      I just figured out the solution my self

      Well actually you don't have to paste the FILE.CSS in Root of tomcat
      you actually have to paste the .css file where your netbeans Projects reside
      for example C://Documents and settings/NetbeansProject/ProjectName/Web
      Paste the .Css over there


      and so this remains same : link href='style.css ' rel='stylesheet ' type='text/css'

      And Enjoy =)

      Comment

      Working...