views:

371

answers:

1

What is the smartest way to get current page name where request came from? By page I mean the real page name that contains current portlet.

A: 

By using something like that you should be ok

ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
String title = themeDisplay.getLayout().getName(themeDisplay.getLocale());
Awano