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
2010-05-18 06:42:51