Re: Forwarding the request to Spring Controller

Splash Forums PrettyFaces Users Forwarding the request to Spring Controller Re: Forwarding the request to Spring Controller

#22580

singhv
Participant

Christian

I have not upgraded and trying the solution you suggested and they do not work.

If I go with this solution

<url-mapping id=”profileId”>

<pattern>/profile/#{id}</pattern>

<view-id>/userProfile.html</view-id>

</url-mapping>

com.ocpsoft.pretty.PrettyException: PrettyFaces: Exception occurred while processing <newReg:#{id}> for URL </profile/7874>

at com.ocpsoft.pretty.beans.ParameterInjector.injectParams(ParameterInjector.java:122)

at com.ocpsoft.pretty.beans.ParameterInjector.injectParameters(ParameterInjector.java:49)

at com.ocpsoft.pretty.PrettyContext.injectParameters(PrettyContext.java:127)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:55)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at com.skill.guru.web.filter.AnalyticsFilter.doFilterInternal(AnalyticsFilter.java:44)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)

If I try this solution

<url-mapping id=”profileId”>

<pattern>/profile/#{ id : forwarderBean.profileId }</pattern>

<view-id>/userProfile.html</view-id>

</url-mapping>

this is the exception I get

java.util.regex.PatternSyntaxException: Illegal repetition near index 9

/profile/#{ id : forwarderBean.profileId }

^

java.util.regex.Pattern.error(Pattern.java:1713)

java.util.regex.Pattern.closure(Pattern.java:2775)

Should I upgrade and then try or I am doing something wrong ?