Foren

RE: portlet runtime in jsp page generate an error

thumbnail
subhash lamba, geändert vor 11 Jahren.

portlet runtime in jsp page generate an error

Regular Member Beiträge: 136 Beitrittsdatum: 07.07.13 Neueste Beiträge
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<liferay-portlet:runtime portletName="portlet_userdisplayquotes_WAR_userdisplayquotesportlet"></liferay-portlet:runtime>


i am using this to display portlet in jsp page but it generate an error like

SEVERE: Servlet.service() for servlet usersetting Servlet threw exception
javax.servlet.jsp.JspException: ServletException in '/html/common/themes/portlet.jsp': File &quot;/html/common/themes/portlet.jsp&quot; not found
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1559)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5116)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5104)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1545)
at com.toocoolproductions.controller.RuntimePortletEmbedUtil.renderPortlet(RuntimePortletEmbedUtil.java:62)
.............

plz help me to solve this problem.
thumbnail
Péter Borkuti, geändert vor 11 Jahren.

RE: portlet runtime in jsp page generate an error

New Member Beiträge: 18 Beitrittsdatum: 15.06.12 Neueste Beiträge
Hi,

Is your portlet "portlet_userdisplayquotes" working if you just deployed it and add it to a page?

What is your goal? Displaying a portlet in a portlet?

I searched in liferay-plugins directory, and there are two usages of <liferay-portlet:runtime>:

liferay-plugins\portlets\notifications-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view_user_account.jspf
liferay-plugins\portlets\so-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view.jsp

I think, that it is worth to check these two files and what are these two files needs to be imported.

Moreover, "nested portlets" portlet also may be worth to investigate, it is an out-of-the-box portlet in Liferay.

I found a thread about portlet-in-a-portlet :
https://www.liferay.com/community/forums/-/message_boards/message/15709909

I hope, that it helps a bit.
thumbnail
subhash lamba, geändert vor 11 Jahren.

RE: portlet runtime in jsp page generate an error

Regular Member Beiträge: 136 Beitrittsdatum: 07.07.13 Neueste Beiträge
Péter Borkuti:
Hi,

Is your portlet "portlet_userdisplayquotes" working if you just deployed it and add it to a page?

What is your goal? Displaying a portlet in a portlet?

I searched in liferay-plugins directory, and there are two usages of <liferay-portlet:runtime>:

liferay-plugins\portlets\notifications-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view_user_account.jspf
liferay-plugins\portlets\so-portlet\docroot\META-INF\custom_jsps\html\portlet\dockbar\view.jsp

I think, that it is worth to check these two files and what are these two files needs to be imported.

Moreover, "nested portlets" portlet also may be worth to investigate, it is an out-of-the-box portlet in Liferay.

I found a thread about portlet-in-a-portlet :
https://www.liferay.com/community/forums/-/message_boards/message/15709909

I hope, that it helps a bit.


Péter Borkuti

portlet_userdisplayquotes working if i add in jsp page simplely.
but i am creating another portlet and use portlet_userdisplayquotes in this portlet.
i wont to import portlet_userdisplayquotes portlet in jsp file
Sharad Sinha, geändert vor 11 Jahren.

RE: portlet runtime in jsp page generate an error

Junior Member Beiträge: 44 Beitrittsdatum: 08.03.13 Neueste Beiträge
HI Subhash

Hers is the sample code, how can u use another portlet in your jsp. I am displaying Language Portlet in my jsp.




<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<portlet:defineObjects />

<liferay-portlet:runtime portletName="82"></liferay-portlet:runtime>





And in your code, use only userdisplayquotes_WAR_userdisplayquotesportlet. and let me know it is working or not.


Thanks
Sharad Sinha
thumbnail
subhash lamba, geändert vor 11 Jahren.

RE: portlet runtime in jsp page generate an error

Regular Member Beiträge: 136 Beitrittsdatum: 07.07.13 Neueste Beiträge
Sharad Sinha:
HI Subhash

Hers is the sample code, how can u use another portlet in your jsp. I am displaying Language Portlet in my jsp.




<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<portlet:defineObjects />

<liferay-portlet:runtime portletName="82"></liferay-portlet:runtime>





And in your code, use only userdisplayquotes_WAR_userdisplayquotesportlet. and let me know it is working or not.


Thanks
Sharad Sinha


hi Sharad Sinha..

<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<portlet:defineObjects />

<liferay-portlet:runtime portletName="82"></liferay-portlet:runtime>

this code working for me..
but custome portlet not working for me.

and i also try for "userdisplayquotes_WAR_userdisplayquotesportlet" is not working for me. generate same error..
Sharad Sinha, geändert vor 11 Jahren.

RE: portlet runtime in jsp page generate an error

Junior Member Beiträge: 44 Beitrittsdatum: 08.03.13 Neueste Beiträge
Hi Subhash,

Try this:

Add this line into your liferay-portlet.xml of Custom Portlet and use userdisplayquotes_WAR_userdisplayquotesportlet.


<use-default-template>false</use-default-template>




Thanks
Sharad Sinha
thumbnail
subhash lamba, geändert vor 11 Jahren.

RE: portlet runtime in jsp page generate an error

Regular Member Beiträge: 136 Beitrittsdatum: 07.07.13 Neueste Beiträge
Thanx Sharad Sinha..
yes error is gone but still portlet is not visible emoticon
no error accure but portlet is also not visible.