Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Phat Huynh
Does Liferay support servlet?
July 9, 2012 4:52 PM
Answer

Phat Huynh

Rank: New Member

Posts: 7

Join Date: July 9, 2012

Recent Posts

Hello everybody,
My web application is using servlet technique, I don't see any document about supporting servlet in Liferay (does liferay portal contain servlet pages instead of portlet?) , can anybody help me out of this problems?
Thank you so much for your help
Best regards
Phat Huynh
RE: Does Liferay support servlet?
July 13, 2012 8:50 PM
Answer

Phat Huynh

Rank: New Member

Posts: 7

Join Date: July 9, 2012

Recent Posts

I found out that I can insert servlet code in to portlet (using doView and processAction in GenericPortlet) But I still can't use a class extends httpServlet to request and receive response to liferay, anybody please give me some advice on this issue....
Best regards
Priyanka Dhingra
RE: Does Liferay support servlet?
July 13, 2012 9:31 PM
Answer

Priyanka Dhingra

Rank: Liferay Master

Posts: 501

Join Date: December 19, 2011

Recent Posts

Hi,
Never tried it so far..
but this may give you a hint.
http://www.applettalk.com/liferay-and-portletdelegateservlet-vt98007.html
Hitoshi Ozawa
RE: Does Liferay support servlet?
July 13, 2012 10:27 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

does liferay portal contain servlet pages instead of portlet?)


Yes, just put your servlet under ROOT\html

That said, why do you want to run servlet on Liferay? If you're just going to run servlet, just use tomcat. Running servlet won't give you functionalities provided by liferay.
Phat Huynh
RE: Does Liferay support servlet?
July 19, 2012 2:55 AM
Answer

Phat Huynh

Rank: New Member

Posts: 7

Join Date: July 9, 2012

Recent Posts

I got it, thank you guys so much much emoticon
Sachin Mane
RE: Does Liferay support servlet?
July 19, 2012 4:05 AM
Answer

Sachin Mane

Rank: Junior Member

Posts: 76

Join Date: April 9, 2012

Recent Posts

You can create -web type of projects (liferfay-sdk\webs) which can have servlets.
Hitoshi Ozawa
RE: Does Liferay support servlet?
July 19, 2012 4:49 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

If you want to view servlet pages in Liferay pages, just use iframe portlet (in samples).