A very strange problem -> CSS file not detected .Java web application

Posted by Nitesh Panchal on Stack Overflow See other posts from Stack Overflow or by Nitesh Panchal
Published on 2010-05-26T14:35:58Z Indexed on 2010/05/26 14:41 UTC
Read the original article Hit count: 217

Filed under:
|

Hello, If i browse my site using http://localhost:8080/abc/Login/index.jsf, everything works fine. But if browse it using simply http://localhost:8080/abc, the page is shown but all its images and css files are missing. What can be the problem?

I have this in my web.xml :-

 <form-login-config>
            <form-login-page>/Login/index.jsf</form-login-page>
            <form-error-page>/Login/index.jsf</form-error-page>
        </form-login-config>

Probably, images are not getting referenced correctly. Can anybody help me?

I have referenced css file as follows :-

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

where Css is folder in Login

© Stack Overflow or respective owner

Related posts about java

Related posts about css