在 view.jsp 中使用选项卡概念时出现以下错误:绝对 uri:http: //java.sun.com/jstl/core_rt无法在 web.xml 或使用此应用程序部署的 jar 文件中解析,而使用 jstl。我已经添加了 jar 文件 jstl-1.2.jar 文件。以下是我的 view.jsp:任何人都可以帮助我获得正确的代码吗?
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
<%@ taglib uri="http://liferay.com/tld/ui" prefix="liferay-ui" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@page import="com.liferay.portal.security.permission.*" %>
<%@page import="com.liferay.portal.kernel.util.ParamUtil" %>
<%@page import="com.liferay.portal.theme.*" %>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
//A renderURL is created because we need to render a jsp page you need to use //renderURL we can also pass parameters if required
<%
//We must Specify a default value for tabs. In this example it is sunday. Else it //will throw an error.
String tabValue = ParamUtil.getString(request, "tab", "sunday");
String tabsURL = "/html/tab" + tabValue.trim() + ".jsp";
String tabNames="Sunday,Monday,Tuesday" ;
String tabVal="sunday,monday,tuesday" ;
%>
<liferay-ui:tabs
names="<%=tabNames%>"
tabsValues="<%=tabVal%>"
param="tab"
url="<%= portletURL %>"
/>