Message Boards
How to get the previous url in liferay 6.1
Kiran Kumar Boyini, modified 12 Years ago.
How to get the previous url in liferay 6.1
Expert Posts: 287 Join Date: 6/2/11 Recent Posts
Hi All,
How can I get the exact previous url in the present jsp page.
Here after clicking i am navigating to some jsp page,after user click the back hyperlink it has to go previous url .
Regards,
Kiran.
How can I get the exact previous url in the present jsp page.
Here after clicking i am navigating to some jsp page,after user click the back hyperlink it has to go previous url .
Regards,
Kiran.
mohammad azaruddin, modified 12 Years ago.
RE: How to get the previous url in liferay 6.1
Expert Posts: 492 Join Date: 9/17/12 Recent Posts
Hi
In first jsp page set the value of current url(themeDisplay.getURLCurrent) in renderURL which you used to navigate to another jsp page...
And in second jsp page get that paramter value and use as back url
In first jsp page set the value of current url(themeDisplay.getURLCurrent) in renderURL which you used to navigate to another jsp page...
renderURL.setParameter("backURL", themeDisplay.getURLCurrent());
And in second jsp page get that paramter value and use as back url
<%
String backURL = ParamUtil.getString(request, "backURL");
%>
<liferay-ui:header
backLabel="« Back to first jsp"
title=""
backURL="<%= backURL %>"
/>
Kiran Kumar Boyini, modified 12 Years ago.
RE: How to get the previous url in liferay 6.1
Expert Posts: 287 Join Date: 6/2/11 Recent Posts
Thank you....