How to get Liferay current url that is being displayed in browser? -


i have 2 portlets on page "portlet a" , "portlet b". page has url http://localhost:8080/web/guest/page?p_p_id="portlet a"... submit form in "portlet b" , try current url portalutil like

portalutil.getcurrenturl(myrequest);//p_p_id="portlet b"... themedisplay.geturlcurrent(myrequest);p_p_id="portlet b"... 

but in browser before submission see url p_p_id="portlet a"...

is there way url being shown user?

the link looking called referer , points page request comes from. tobias liefke

in liferay can find using portlerrequest.gethttprequest().getheader("referer")


Comments

Popular posts from this blog

r - how do you merge two data frames the best way? -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -

php - mySQL problems with this code? -