Get the current page name with JSF 2 [closed]

2

I'm using JSF 2 and need to get the name of the current page, how can I do it?

    
asked by anonymous 03.08.2016 / 01:36

1 answer

3

One option is through ExternalContext :

((HttpServletRequest) getFacesContext().getExternalContext().getRequest()).getRequestURI()
    
03.08.2016 / 13:10