Forums de discussion

Redirect Url from one portal to another

Sandeep Chitturi, modifié il y a 14 années.

Redirect Url from one portal to another

New Member Publications: 9 Date d'inscription: 13/01/10 Publications récentes
we have to navigate form one portal page to another portal page in Liferay.and i using the below code:

long plid = 100; // plid is page layout id.You can check its value in layout table.

String porltetName="portletname_WAR_ApplicationName";

PortletURL pURL = new PortletURLImpl(request, porltetName,plid , PortletRequest.RENDER_PHASE);

pURL.setWindowState(LiferayWindowState.POP_UP);

pURL.setParameter("test", "testvalue");

out.println(pURL);

in spring controller we are using Spring portlet MVC.but when i deloplyed me WAR on tomcat and running my portlet i am getting "java.lang.NoClassDefFoundError: com/liferay/portlet/PortletURLImpl" exception though by my spring controller ,i check my tomcat+liferay bundle for portal-impl.jar and it exists there.can any one suggest me a solution please....we under a strict dead line.
Sandeep Chitturi, modifié il y a 14 années.

RE: Redirect Url from one portal to another

New Member Publications: 9 Date d'inscription: 13/01/10 Publications récentes
i solved it,thanks anyways
thumbnail
Nagendra Kumar Busam, modifié il y a 14 années.

RE: Redirect Url from one portal to another

Liferay Master Publications: 678 Date d'inscription: 07/07/09 Publications récentes
Hi Sandeep,

Please do send how you got it fixed - it will be helpful to community people

Regards,
- Nagendra Kumar
Sandeep Chitturi, modifié il y a 14 années.

RE: Redirect Url from one portal to another

New Member Publications: 9 Date d'inscription: 13/01/10 Publications récentes
Hi Nagendra,
My solution is ,i order to use methods in liferay's portal-impl.jar we have to make some changes in default tomcat bundle.for the changes you can refer to following link

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How%20to%20access%20the%20full%20Liferay%20API%20from%20a%20portlet%20application

but i changed my approach,now i am using liferay's tag libs to redirect from one portal to another.i.e actionURL ,renderURL the following links helped me a lot to find the solution

http://www.liferay.com/community/forums/-/message_boards/message/98637;jsessionid=57F931A84628D94ABDB5969F2261C0F1.node-1

http://www.liferay.com/community/wiki/-/wiki/Main/Inter-portlet+communication;jsessionid=30B579040890788E08EFDCE2135BA1F6.node-1
Larry P, modifié il y a 13 années.

RE: Redirect Url from one portal to another

New Member Envoyer: 1 Date d'inscription: 25/06/10 Publications récentes
Sandeep Chitturi:
Hi Nagendra,
My solution is ,i order to use methods in liferay's portal-impl.jar we have to make some changes in default tomcat bundle.for the changes you can refer to following link

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/How%20to%20access%20the%20full%20Liferay%20API%20from%20a%20portlet%20application

but i changed my approach,now i am using liferay's tag libs to redirect from one portal to another.i.e actionURL ,renderURL the following links helped me a lot to find the solution

http://www.liferay.com/community/forums/-/message_boards/message/98637;jsessionid=57F931A84628D94ABDB5969F2261C0F1.node-1

http://www.liferay.com/community/wiki/-/wiki/Main/Inter-portlet+communication;jsessionid=30B579040890788E08EFDCE2135BA1F6.node-1

Thanks you for the post.


__________________
Watch Grown Ups Online Free
warezcc jordan, modifié il y a 13 années.

RE: Redirect Url from one portal to another

New Member Envoyer: 1 Date d'inscription: 01/11/10 Publications récentes
suck a amazing post
Thanks you for the post.


__________________
Watch Grown Ups Online Free
thumbnail
jelmer kuperus, modifié il y a 13 années.

RE: Redirect Url from one portal to another

Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
You can use PortletURLFactoryUtil which sits is service and therefore is accessible from everywhere