关键词不能为空

当前您在: 主页 > 英语 >

关于JSP中org.apache.jasper.JasperException

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-12 02:42
tags:

-

2021年2月12日发(作者:花椰菜的英文)


HTTP Status 500 -




type


Exception report


message




description


The server encountered an internal error () that prevented i


t


from fulfilling this request.


exception



Exception: The absolute uri:


/jsp/jstl/core cannot be resolved in either


or the jar files deployed with this application



or(Defau


:50)



ch(ErrorDisp


:378)



or(ErrorDisp


:118)



teTLDLoca


tion(:316)



raryInfoImpl.(TagLibr a


:147)



aglibDire ctive(Parser


.java:418)



irective(:


483)



lements(:1


539)



(:126)



e(ParserCon


:220)



(ParserContr


:101)



teJava(


a:203)



e(:461


)



e(:442


)



e(:430


)



e(JspCompilatio


:511)



e(JspServle


:274)



eJspFile(JspServle


:292)



e(:


236)



e(:856)



ard(RequestPr


:1085)



sForwardConfi


g(:398)



s(RequestProc


:241)



s(ActionServlet.


java:1196)



(


va:414)



e(:743)



e(:856)


note


The full stack trace of the root cause is available in the Tomcat logs.


/jsp/jstl/core cannot be resolved in either or the jar files deployed with


this application




貌似你没把


jstl


使用的


jar


文件引入到项目中




myeclispe7.0


的话 直接左侧



【项目】



【右键】




MyEclipse





add JSTL






或者



【项目】



【右键】




Bulid path




libraries





add external jars


】找到你下的


jstl


的两个


jar


文件



加了之后要重新发布下项目




跑到


tomcat


安装目录下



webapps


中你发布项目下的

< br>lib


文件夹里看看这两个


jar


在不在



复制





文件到


web- inf/lib


目录在您的项目



这是因为你运行的代码里有的要改为本地文件才可以的


!



你可以把文中出现


/jstl/sql


的地方换成你的




服务器上


jstl/sql


的地址

!


想用下


jstl


,用法如下:



报错结果:


Exception:


The


absolute


uri:


/jsp/jstl/core


cannot be resolved in either or the jar files deployed with this application




配置如下:




< p>
xmlns=


version=


xmlns:xs i=


xsi:schemaLocation=


/xml/ns /javaee/web-app_2_






/jstl/fmt




/WEB- INF/tlds/









/jstl/fmt-rt




/WEB-INF/tlds/









/jstl/core




/WEB- INF/tlds/









/jstl/core-rt




/WEB-INF/tlds/









/jstl/sql




/WEB- INF/tlds/









/jstl/sql-rt




/WEB-INF/tlds/









/jstl/x




/WEB- INF/tlds/









/jstl/x-rt




/WEB-INF/tlds/










action



Servlet





config



/WEB- INF/







debug



3







detail



3





0







action



*.do












jsp


页面



<%@ page language=


<%@ taglib uri=



<%


String path = textPath();


String


basePath


eme()+


%>













My JSP '' starting page






=

-


-


-


-


-


-


-


-



本文更新与2021-02-12 02:42,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/640578.html

关于JSP中org.apache.jasper.JasperException的相关文章