Reply To: Home direction and parameter problem

Splash Forums PrettyFaces Users Home direction and parameter problem Reply To: Home direction and parameter problem

#26215

darkside
Participant

I couldn’t understand πŸ™

Can i use this with pretty-config.xml?

I upgrade my project to 2.0.12.Final

pom.xml

<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-servlet</artifactId>
<version>2.0.12.Final</version>
</dependency>
<dependency>
<groupId>org.ocpsoft.rewrite</groupId>
<artifactId>rewrite-config-prettyfaces</artifactId>
<version>2.0.12.Final</version>
</dependency>

pretty-config.xml

******
<url-mapping id=”home”>
<pattern value=”/home/” />
<view-id value=”/index.xhtml” />
</url-mapping>
<url-mapping id=”userProfile”>
<pattern value=”/#{userCode:userBean.userCode}” />
<view-id value=”/pages/publicpages/userProfile.xhtml” />
</url-mapping>
********

web.xml header
*****
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns=”http://java.sun.com/xml/ns/javaee”
xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd
id=”WebApp_ID” version=”3.0″ >

<filter>
<filter-name>OCPsoft Rewrite Filter</filter-name>
<filter-class>org.ocpsoft.rewrite.servlet.RewriteFilter</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>OCPsoft Rewrite Filter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ASYNC</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
*****

And i am working with tomcat6 v24.

When i call a different page in my project (like login, register… ie.),

first execute “userBean”, than navigate the my calling page.

Sorry about my english.

How can i fixed that?. help please.