css - Web app: something wrong with paths? -
for reasons seems web app has wrong paths.
i've following path web-inf in eclipse:
project --src -- main --webapp --web-inf --jsp --css
i created project using spring, hibernate , maven.
but example doesn't work , doesn't load styles jsp pages:
<link href="css/style.css" rel="stylesheet" type="text/css">
the welcome page , error page web.xml not work too:
<welcome-file-list> <welcome-file>/students</welcome-file> </welcome-file-list> <error-page> <exception-type>java.lang.exception</exception-type> <location>/web-inf/jsp/error.jsp</location> </error-page>
the result error page message "the website cannot display page" browser. if remove error-page configuration stacktrace, means in way configuration used, wrong in interpreting paths.
what may wrong?
the welcome file wrong. not full path name of file in directory if directory requested.
i don't see wrong error page. check war/directory generated eclipse applciation see if error page in right place. thing use static file error page until working rule out issues jsp.
Comments
Post a Comment