Re: how to map an url like www.example.com?foo=bar

Splash Forums PrettyFaces Users how to map an url like www.example.com?foo=bar Re: how to map an url like www.example.com?foo=bar

#22845

Hi,

you could also declare the query parameters in your mapping like this:

<url-mapping id="callback">
<pattern value="/oauth2callback" />
<view-id value="/faces/something.jsf" />
<query-param name="state">#{bean.state}</query-param>
<query-param name="code">#{bean.code}</query-param>
</url-mapping>

Christian