Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CSS没有在eclipse中得到应用_Css_Eclipse_Primefaces - Fatal编程技术网

CSS没有在eclipse中得到应用

CSS没有在eclipse中得到应用,css,eclipse,primefaces,Css,Eclipse,Primefaces,我不熟悉primefaces,这里是我的问题。我已经配置了关于欢迎页面的web.xml。但是,样式表css没有将linkedstyle.css连接到欢迎页面login.xhtml。我使用的路径也是正确的。如果我尝试单独加载该页面login.xhtml,则该页面将加载应用的样式。但是,当我选择在eclipse中通过在服务器ApacheTomcatV7.0.14上运行run->run来运行我的项目时,样式并没有得到应用。我能知道原因吗 显示的错误是ApacheTomcat/7.0.14-错误报告 提

我不熟悉primefaces,这里是我的问题。我已经配置了关于欢迎页面的web.xml。但是,样式表css没有将linkedstyle.css连接到欢迎页面login.xhtml。我使用的路径也是正确的。如果我尝试单独加载该页面login.xhtml,则该页面将加载应用的样式。但是,当我选择在eclipse中通过在服务器ApacheTomcatV7.0.14上运行run->run来运行我的项目时,样式并没有得到应用。我能知道原因吗

显示的错误是ApacheTomcat/7.0.14-错误报告


提前感谢

您能否发布login.xhtml和style.css的代码。错误Apache Tomcat/7.0.14-错误报告与未应用css无关。请检查server.log文件中是否有任何其他错误。已解决。需要将路径指定为css/style.css,而不是../css/style.css。