Get the current page name with JSF 2

Asked

Viewed 339 times

2

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

1 answer

3


One option is through ExternalContext:

((HttpServletRequest) getFacesContext().getExternalContext().getRequest()).getRequestURI()

Browser other questions tagged

You are not signed in. Login or sign up in order to post.