Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Struts 2 optiontransferselect标记在jsp中不起作用?_Java_Javascript_Jsp_Struts2 - Fatal编程技术网

Java Struts 2 optiontransferselect标记在jsp中不起作用?

Java Struts 2 optiontransferselect标记在jsp中不起作用?,java,javascript,jsp,struts2,Java,Javascript,Jsp,Struts2,我正在尝试执行以下jsp代码,其中包含optiontransferselect标记。但是,我得到以下例外情况: org.apache.jasper.JasperException: /abc.jsp(10,0) No tag "optiontransferselect label" defined in tag library imported with prefix "s" 请查找我使用过的以下代码 <%@ page language="java" contentType="text/

我正在尝试执行以下jsp代码,其中包含optiontransferselect标记。但是,我得到以下例外情况:

org.apache.jasper.JasperException: /abc.jsp(10,0) No tag "optiontransferselect label" defined in tag library imported with prefix "s"
请查找我使用过的以下代码

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>Optiontransferselect Tag Example!</title>
</head>
<body>
<s:form>
<s:optiontransferselect label="Employee Records" name="leftSideEmployeeRecords" leftTitle="RoseIndia" rightTitle="JavaJazzUp" list="{'Deepak Kumar', 'Sushil Kumar','Vinod Kumar','Deepak Monthy','Deepak Mihanti', 'Sushil Kumar', 'Ravi Kant Kumar'}" headerKey="headerKey" headerValue="--- Please Select ---" doubleName="rightSideEmployeeRecords" doubleList="{'Amar Deep Patel', 'Amit Kumar','Chandan Kumar', 'Noor Kumar','Tammana Kumari'}" doubleHeaderKey="doubleHeaderKey" doubleHeaderValue="--- Please Select ---" />
</s:form>
</body>
</html> 

Optiontransferselect标记示例!

请指导。

您正在项目中使用较旧版本的
struts core xxx.jar
。您是否使用
2.3.16
或更高版本


要使用optiontransferselect标记,您需要使用struts-core-2.3.16或更高版本。

您需要包含
标记,该标记会拖拽一些javascript,以使
标记正常工作。

Struts2版本?web.xml内容?是否使用Struts以外的TLD。不正确。你为什么这么认为?