Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 605
  • Last Modified:

cannot find .css file in jsp page

i have a jsp page created using WSAD ; i have a link to a .css  file

<link media="screen" href="http://localhost/cms/css/table.css" type="text/css" rel="stylesheet">
<link media="screen" href="http://localhost/cms/css/icons.css" type="text/css" rel="stylesheet">

cms is my context root


and the folder structure is

certificationWeb
 --- WebContent
        ---- WEB-INF
                  ------- css


can some on epls help me why it is not foinding the file


Thankyou


0
royalcyber
Asked:
royalcyber
  • 2
1 Solution
 
sajuksCommented:
http://localhost/cms/css/table.css"  means the folder structure is
webappfolder
 - css
but i assume from ur link that ur structure is
webappfolder
 -WEB_INF
  - css

so for it to refer u need to place the css folder under the webappfolder and no tthe web-infi
0
 
TimYatesCommented:
sajuks is right...  The browser will try and fetch your css files, but the browser cannot access the web-inf folder.  JSP can (as it is run on the server), but the outside world cannot.

So as sajuks says, you need to move the CSS folder up a level.
0
 
sajuksCommented:
Thanks for the points and grade
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now