css link to jsp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    css link to jsp

    Hello,

    Why when i ctrl - click inside the project the link to css it shows css file, but when i run the project css doesn't load.

    Please help
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    This is probably due to the CSS file either not being deployed with the JSP or the path given in your JSP being incorrect. So the big question is: Where is the CSS file in your application?

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      it is in aplicationName - build - web - cssfile

      Thank You

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        OK, not knowing the exact file structure of your project, I'd guess you have to include the CSS with a command something like this:
        Code:
        <link rel="stylesheet" href="${pageContext.request.contextPath}/web/project.css"/>
        You may have to experiment with the path a bit, I'm not 100% sure what it is supposed to be; but I'm sure you'll be able to find it as a child of the context path.

        Comment

        • oll3i
          Contributor
          • Mar 2007
          • 679

          #5
          Thank You i solved it :)

          Comment

          Working...