CSS file location problem!

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Probably a very simple answer to this but I just can't see it, I have a web
app with the following directory structure -

       - jsp
              - css

So to access a jsp page I put a URL like

So jsp files sit in "jsp" & stylesheets in "css" directories

Using Dreamweaver to attach a css this line is added -

     <link href="css/stylesheet.css" rel="stylesheet" type="text/css">

Which is fair enough & works in the design window but when deployed on the
web server (weblogic 8.1) I have to have this line -

     <link href="jsp/css/stylesheet.css" rel="stylesheet" type="text/css">

This prevents it working in Dreamweaver then!

Why do I need the "jsp" bit? - surely the 1st line is relative to the
current dir i.e jsp but it refuses to find it!

any ideas?



Re: CSS file location problem!

Quoted text here. Click to load it

I'd have to lookup the technical documentation, but I believe
there is a way to map paths in your /WEB-INF/web.xml file.


http://www.geniegate.com Custom web programming
User Management Solutions                   Perl / PHP / Java / UNIX

Re: CSS file location problem!

something I can't quite understand is futher down the jsp file I have this
line -

which works fine even though "tabs" is off the "jsp" dir also - are css
files accessed differently then?


Quoted text here. Click to load it
Quoted text here. Click to load it

Site Timeline