Reputation: 1625
Why is the renderRequest Object accessible in my JSP file?
It is accessible in view.jsp file but in the other jsp files it is not accessible.
I get the error renderRequest cannot be resolved
By the way I'm using Eclipse Liferay IDE.
Upvotes: 4
Views: 10006
Reputation: 2423
if you are adding those TLDs references in liferay-plugin-package.properties
file, then you can test and if you don't get any compilation error ignore errors like renderRequest can not be resolved
in IDE , because the IDE might shows error for various objects referenced from portal dependency LTDs like renderRequest etc, when this jsp gets complied at runtime - the TLDs are available from portal and it gets compiled successfully, but make sure to include this taglib in your jsps :
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects />
Upvotes: 1
Reputation: 3650
Make sure your jsp has the following taglib included
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<portlet:defineObjects />
Upvotes: 12