Fórumok

How to get the current page name in the JSP

thumbnail
Subhasis Roy, módosítva 11 év-val korábban

How to get the current page name in the JSP

Expert Bejegyzések: 275 Csatlakozás dátuma: 2012.01.20. Legújabb bejegyzések
Hi, can any one please tell me that how can i get the page name inside the JSP.
thumbnail
Harish Kumar, módosítva 11 év-val korábban

RE: How to get the current page name in the JSP

Expert Bejegyzések: 483 Csatlakozás dátuma: 2010.07.31. Legújabb bejegyzések
themeDisplay.getLayout().getName()
thumbnail
Subhasis Roy, módosítva 11 év-val korábban

RE: How to get the current page name in the JSP

Expert Bejegyzések: 275 Csatlakozás dátuma: 2012.01.20. Legújabb bejegyzések
Thanks I got that using

<%@ page import = "com.liferay.portal.kernel.util.WebKeys" %>
<%@ page import = "com.liferay.portal.theme.ThemeDisplay" %>

<%
ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute(WebKeys.THEME_DISPLAY);
String pageName = themeDisplay.getLayout().getName(themeDisplay.getLocale());
%>