Error in my taglib <%@ taglib prefix=“portlet” uri=“http://java.sun.com/portlet_2_0”%>
问题 When I developed my portlet and when i wrote my jsp page I used: <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%> but eclipse show me an error telling me that it cannot find the tag lib descriptor for http://java.sun.com/portlet_2_0. How can I resolve this issue wihtout using tld files ? 回答1: In my case, I am using Liferay Portal, so in order to avoid this error I changed: <%@ taglib uri="http://java.sun.com/portlet_2_0"% prefix="portlet"> to <%@ taglib uri="/WEB-INF/tld