最近在看 <>,同时在学用NetBean5.5(我已经受不了Eclipse了,呵呵)!
第一个HelloWorld程序就给我了个下马威:
java.lang.IllegalStateException: No FacesContext is available to process this request. This is most likely due to the request being sent to the wrong path.
google了一下,很容易就解决了问题!
JSF默认的Servlet mapping 是/faces/*, 但是默认的welcome page是index.jsp,把welcome page 改成 /faces/index.jsp
或者在index.jsp文件里就写这么一行 :
阅读(852) | 评论(0) | 转发(0) |