I'm using JSF 2 and need to get the name of the current page, how can I do it?
I'm using JSF 2 and need to get the name of the current page, how can I do it?
One option is through ExternalContext
:
((HttpServletRequest) getFacesContext().getExternalContext().getRequest()).getRequestURI()