1
我正在學習JSTL
。我正在關注在互聯網上找到的一個簡單例子。 我創建了一個擴展SimpleTagSupport
的類。但我得到這個錯誤SimpleTagSupport無法解析爲類型
SimpleTagSupport cannot be resolved to a type
我已經Tomcat 7
,Java 1.7
系統庫和我加入外部罐'servlet-api.jar'
我錯過了什麼? 謝謝
我正在學習JSTL
。我正在關注在互聯網上找到的一個簡單例子。 我創建了一個擴展SimpleTagSupport
的類。但我得到這個錯誤SimpleTagSupport無法解析爲類型
SimpleTagSupport cannot be resolved to a type
我已經Tomcat 7
,Java 1.7
系統庫和我加入外部罐'servlet-api.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罐子?如果是這樣,請發佈您的代碼或分享鏈接。 –
這就是我錯過的。謝謝你:) – MDP
不客氣。 –