Fórum
struts portlet and service builder in Liferay 6.0
chandru palaniyappan, modificado 13 Anos atrás.
struts portlet and service builder in Liferay 6.0
Junior Member Postagens: 85 Data de Entrada: 29/07/10 Postagens Recentes
Hi all,
I'm using liferay 6.X and pluginsdk6.0.5.
I have created a portlet using service builder.
I planned to use struts to use the services.
I imported StrutsPortlet, PortletAction.
When i do ant deploy i got these errors
The both StrutsPortlet and PortletAction are in portal-impl.jar.
Do i need to import this into my portlet?
Can anyone please help me?
Thanks and Regards,
Chandru P
I'm using liferay 6.X and pluginsdk6.0.5.
I have created a portlet using service builder.
I planned to use struts to use the services.
I imported StrutsPortlet, PortletAction.
When i do ant deploy i got these errors
Buildfile: C:\projectss\liferay\Pluginsdk6.0.5\portlets\My-portlet\build.xml
compile:
merge:
compile-java:
[javac] Compiling 1 source file to C:\projectss\liferay\Pluginsdk6.0.5\portlets\My-portlet\docroot\WEB-INF\classes
[javac] C:\projectss\liferay\Pluginsdk6.0.5\portlets\My-portlet\docroot\WEB-INF\src\com\My\action\MyAction.java:23: package com.liferay.portal.struts does not exist
[javac] import com.liferay.portal.struts.PortletAction;
[javac] ^
[javac] C:\projectss\liferay\Pluginsdk6.0.5\portlets\My-portlet\docroot\WEB-INF\src\com\My\action\MyAction.java:24: cannot find symbol
[javac] symbol : class StrutsPortlet
[javac] location: package com.liferay.portlet
[javac] import com.liferay.portlet.StrutsPortlet;
[javac] ^
[javac] C:\projectss\liferay\Pluginsdk6.0.5\portlets\My-portlet\docroot\WEB-INF\src\com\My\action\MyAction.java:31: cannot find symbol
[javac] symbol: class StrutsPortlet
[javac] public class MyAction extends StrutsPortlet {
[javac] ^
[javac] 3 errors
BUILD FAILED
C:\projectss\liferay\Pluginsdk6.0.5\build-common-plugin.xml:347: The following error occurred while executing this line:
C:\projectss\liferay\Pluginsdk6.0.5\build-common.xml:90: Compile failed; see the compiler error output for details.
Total time: 2 seconds
The both StrutsPortlet and PortletAction are in portal-impl.jar.
Do i need to import this into my portlet?
Can anyone please help me?
Thanks and Regards,
Chandru P
Faris Abdulla, modificado 13 Anos atrás.
RE: struts portlet and service builder in Liferay 6.0
Regular Member Postagens: 183 Data de Entrada: 02/09/09 Postagens Recentes
Hi Chandru,
Can you try using Apache struts instead of liferay.
org.apache.portals.bridges.struts.StrutsPortlet
I also attached one sample struts portlet using apache struts.
Can you try using Apache struts instead of liferay.
org.apache.portals.bridges.struts.StrutsPortlet
I also attached one sample struts portlet using apache struts.
chandru palaniyappan, modificado 13 Anos atrás.
RE: struts portlet and service builder in Liferay 6.0
Junior Member Postagens: 85 Data de Entrada: 29/07/10 Postagens Recentes
Hi Faris Abdulla,
So i need to import portals-bridges.jar into my plug-in lib.
But please take a look at this wiki by Gnaniyar Zubair and the comment from Jorge Ferrer.
So what shall i do?
Thanks & Regards,
Chandru P
So i need to import portals-bridges.jar into my plug-in lib.
But please take a look at this wiki by Gnaniyar Zubair and the comment from Jorge Ferrer.
So what shall i do?
Thanks & Regards,
Chandru P
Faris Abdulla, modificado 13 Anos atrás.
RE: struts portlet and service builder in Liferay 6.0
Regular Member Postagens: 183 Data de Entrada: 02/09/09 Postagens Recentes
Hi Chandru,
Struts bridge is also recommended in liferay portlet.
For MVC liferay uses: com.liferay.util.bridges.mvc.MVCPortlet
You can also have look on this issues
Happy New year....
Struts bridge is also recommended in liferay portlet.
For MVC liferay uses: com.liferay.util.bridges.mvc.MVCPortlet
You can also have look on this issues
Happy New year....
chandru palaniyappan, modificado 13 Anos atrás.
RE: struts portlet and service builder in Liferay 6.0
Junior Member Postagens: 85 Data de Entrada: 29/07/10 Postagens Recentes
Hi Faris Abdulla ,
Thanks for your reply,
I wil try with it and come back;
Wish you a very Happy New Year...
Chandru P
Thanks for your reply,
I wil try with it and come back;
Wish you a very Happy New Year...
Chandru P