java - JSF 2 can't find my xhml files -


i have web jsf project, with, inside web pages directory:

/web-inf   /faces   /res   index.jsp   

my faces dir got files all.xhtml , login.xhtml.

my web.xml

<servlet-mapping>         <servlet-name>faces servlet</servlet-name>         <url-pattern>/faces/*.xhtml</url-pattern> </servlet-mapping>     <session-config>         <session-timeout>             30         </session-timeout>     </session-config>     <welcome-file-list>         <welcome-file>/faces/login.jsp</welcome-file>     </welcome-file-list> 

but when run project, jsf can't find of xhtml files. don't understand why.

according this post, have define mapping this:

 <servlet-mapping>      <servlet-name>faces servlet</servlet-name>      <url-pattern>/faces/*</url-pattern>  </servlet-mapping> 

or that:

  <servlet-mapping>      <servlet-name>faces servlet</servlet-name>      <url-pattern>*.xhtml</url-pattern>   </servlet-mapping> 

see also:


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -