我的taglib中的错误<%@ taglib prefix =“portlet” URI = QUOT; HTTP://java.sun.com/portlet_2_0"%> [英] Error in my taglib <%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0"%>
问题描述
当我开发我的portlet,当我写了我的jsp页面时,我使用了:
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"%>
但是eclipse显示一个错误告诉我,找不到标签lib描述符< a href =http://java.sun.com/portlet_2_0 =nofollow> 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.
如何解决使用tld文件的问题?
How can I resolve this issue wihtout using tld files ?
推荐答案
在我的情况下,我正在使用Liferay Portal,所以为了避免这个错误
我改变了:
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
to
<%@ taglib uri="/WEB-INF/tld/liferay-portlet.tld" prefix="portlet" %>
WEB-INF / liferay-plugin-package.properties的;我添加了这一行
and in file "WEB-INF/liferay-plugin-package.properties"; I added this line
portal-dependency-tlds=/WEB-INF/tld/liferay-portlet.tld
这是Liferay工作人员建议的(链接)
which is suggested by a Liferay staff (Link)
这篇关于我的taglib中的错误<%@ taglib prefix =“portlet” URI = QUOT; HTTP://java.sun.com/portlet_2_0"%>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!