Displaying web content on custom portlet
In
view.jsp:
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@ taglib
uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib
uri="http://liferay.com/tld/theme" prefix="theme" %>
<%@ taglib
uri="http://liferay.com/tld/ui" prefix="liferay-ui"%>
<theme:defineObjects/>
<portlet:defineObjects />
This is the <b>JPortlet</b> portlet in View
mode.
<liferay-ui:journal-article showTitle="false"
articleId="16303"
groupId="<%=
themeDisplay.getScopeGroupId() %>" />
Preventing Duplication resubmit form in portlet:
Write Below line in liferay-portlet.xml file to
avoid duplicate submission of from data
<action-url-redirect>true</action-url-redirect>