jsf - PrettyFaces redirect doesn't work -


i'm trying set view page particular url, doesn't work, here code:

pretty-config.xml:

<pretty-config>  <url-mapping id="loginpage">     <pattern value="/app"></pattern>     <view-id>/loginpage.xhtml</view-id> </url-mapping>  </pretty-config> 

web.xml:

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <display-name>firanycrm</display-name> <servlet>     <servlet-name>faces servlet</servlet-name>     <servlet-class>javax.faces.webapp.facesservlet</servlet-class>     <load-on-startup>1</load-on-startup> </servlet>  <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.xhtml</url-pattern> </servlet-mapping>   <context-param>     <param-name>com.sun.faces.enablerestoreview11compatibility</param-name>     <param-value>true</param-value> </context-param>  </web-app> 

if set url in browser this: firanycrm/loginpage.xhtml view load, when change loginpage.xhtml /app doesn't work , error appears on browser "not found", console in eclipse doesn't


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -