Forums de discussion
How to get the friendly url of my application in liferay 6.
Kiran Kumar Boyini, modifié il y a 11 années.
How to get the friendly url of my application in liferay 6.
Expert Publications: 287 Date d'inscription: 02/06/11 Publications récentes
Hi All,
I want to get the friendly url in action class .
ex: http://localhost:8081/web/guest/google-page.
from the above url,I want to get the this url : http://localhost:8081/web/guest
Regards,
Kiran.
I want to get the friendly url in action class .
ex: http://localhost:8081/web/guest/google-page.
from the above url,I want to get the this url : http://localhost:8081/web/guest
Regards,
Kiran.
Juhi Kumari, modifié il y a 11 années.
RE: How to get the friendly url of my application in liferay 6.
Expert Publications: 347 Date d'inscription: 12/12/11 Publications récentes
Hi,
Use this
Regards
Juhi
Use this
HttpServletRequest request = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(renderRequest));
String url = PortalUtil.getHomeURL(request);
Regards
Juhi
Kiran Kumar Boyini, modifié il y a 11 années.
RE: How to get the friendly url of my application in liferay 6.
Expert Publications: 287 Date d'inscription: 02/06/11 Publications récentes
Thank you for reply....
But it is giving the following url
http://localhost:8081/web/guest/home
I want the following url :
http://localhost:8081/web/guest
Anyway I have done it by manipulating the http://localhost:8081/web/guest/home.
Regards,
Kiran.
But it is giving the following url
http://localhost:8081/web/guest/home
I want the following url :
http://localhost:8081/web/guest
Anyway I have done it by manipulating the http://localhost:8081/web/guest/home.
Regards,
Kiran.
Juhi Kumari, modifié il y a 11 années.
RE: How to get the friendly url of my application in liferay 6.
Expert Publications: 347 Date d'inscription: 12/12/11 Publications récentes
Hi,
Check once again. Its returning url like
only.
Regards
Juhi
Check once again. Its returning url like
http://localhost:8081/web/guest
only.
Regards
Juhi