Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/391.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.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 SimpleTagSupport无法解析为类型_Java_Jsp_Jstl - Fatal编程技术网

Java SimpleTagSupport无法解析为类型

Java SimpleTagSupport无法解析为类型,java,jsp,jstl,Java,Jsp,Jstl,我在学习JSTL。我下面是一个在互联网上找到的简单例子。 我创建了一个扩展SimpleTagSupport的类。但是我得到了这个错误 SimpleTagSupport cannot be resolved to a type 我有Tomcat7、Java1.7系统库,并将其添加为外部jars的ServletAPI.jar 我错过了什么? 感谢您对于其他发现此问题的人,另一个可能的问题是由您的eclipse.classpath文件引起的。我需要改变这一点: <classpathentr

我在学习JSTL。我下面是一个在互联网上找到的简单例子。 我创建了一个扩展SimpleTagSupport的类。但是我得到了这个错误

  SimpleTagSupport cannot be resolved to a type
我有Tomcat7、Java1.7系统库,并将其添加为外部jars的ServletAPI.jar

我错过了什么?
感谢您

对于其他发现此问题的人,另一个可能的问题是由您的eclipse.classpath文件引起的。我需要改变这一点:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 7 [1.7.0_51]">
    <attributes>
        <attribute name="owner.project.facets" value="java"/>
    </attributes>
</classpathentry>
为此:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

您添加了jstl jar吗?如果是这样的话,发布你的代码或分享链接。这就是我错过的。谢谢你,伙计: