- Can I configure PrettyFaces / Rewrite for mapping all incoming URL request to one page?
- Then how I can get full URL path after domain name from PrettyFaces / Rewrite? Maybe have some annotation or some like this {URLPATH}? Looks like this, but maybe have another solutions on this moment
I need: from all requests with:
"/../../../*......." or/and "/a/b/c/*/*/*/.." or/and "/{param}/**" or/and "/{param}/{param2}/{param3}/**/**"
map to one JSF page.
Something like this:
<url-mapping id="pages">
<pattern value="/**" />
<view-id value="/pages.xhtml" />
</url-mapping>
In Spring MVC I do this like "/україна/452454/45/4774/7744/longpath.html":
@RequestMapping(value = {"/**"},method=RequestMethod.GET)
public @ResponseBody String info(HttpServletRequest request) {
String remainingPaths = (String) request.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
return "<H1>Good Work</H1><br/>" + remainingPaths;
}
On output I have:
<H1>Good Work</H1><br/>/україна/452454/45/4774/7744/longpath.html
How I can get same effect from PrettyFaces / Rewrite?