我正在开发一个在Liferay门户上运行的portlet (我目前有Liferay+Tomcat7包,稍后将在JBoss上运行)。我正在使用带有Liferay IDE和Liferay SDK的Eclipse Helios。
在我的.jsp文件中,我使用Alloy
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
一切正常- portlet成功部署并正确显示。唯一的问题是,Eclipse将其标记为错误:
Description Resource Path Location Type
Can not find the tag library descriptor for "http://liferay.com/tld/aui" edit.jsp /PortletVisual-portlet/docroot line 2 JSP Problem
这主要是一个表面上的错误。Eclipse中的Liferay IDE显然不理解这些依赖关系,尽管项目本身运行良好。我可以忍受这个“错误标记”,它不会给我带来太多困扰。我只是好奇有没有办法解决这个问题。
谢谢你的建议!
编辑:这是我的web.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>PortletVisual-portlet</display-name>
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://liferay.com/tld/aui</taglib-uri>
<taglib-location>/WEB-INF/tld/aui.tld
</taglib-location>
</taglib>
</jsp-config>
</web-app>
发布于 2013-05-13 18:32:23
试试这个:
<taglib>
<taglib-uri>http://liferay.com/tld/aui</taglib-uri>
<taglib-location>/WEB-INF/tld/liferay-aui.tld</taglib-location>
</taglib>
如果不起作用,请尝试here
希望我能帮上忙!祝你好运!
https://stackoverflow.com/questions/16517393
复制相似问题