开发者社区> 问答> 正文

strust1.x 框架遇到一个难题 400 请求出错 

下面是我访问自己写的action后,出错的页面,我是照着例子来的。各位大哥帮帮忙。


HTTP Status 500 - The absolute uri: http://jakarta.apache.org/struts/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application

type Exception report

message The absolute uri: http://jakarta.apache.org/struts/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: The absolute uri: http://jakarta.apache.org/struts/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:56)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:278)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:76)
	org.apache.jasper.compiler.TagLibraryInfoImpl.generateTldResourcePath(TagLibraryInfoImpl.java:242)
	org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:124)
	org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:411)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:469)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1455)
	org.apache.jasper.compiler.Parser.parse(Parser.java:139)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
	org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/8.0.8 logs.

展开
收起
黄一刀 2020-05-29 19:51:00 558 0
1 条回答
写回答
取消 提交回答
  • struts1?????

    现在至少都是struts2了吧?SpringMVC,JFinal什么的都比较流行...

    为毛还搞那个东西啊?


    ######回复 @coco_J : struts2都可以淘汰了,用spring MVC吧###### @coco_J 恩.已经被淘汰了.你最好选择springmvc或struts2或jfinal######我想先从这个开始,难道strust1被淘汰了?######message写出来了~jsp页面中的taglib找不到对应的class,应该是jsp中用了标签库,但是对应的jar包没导入######那我要如何导入标签库呢?大哥,麻烦说详细一些。
    2020-05-29 19:51:56
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
典型业务逻辑漏洞挖掘 立即下载
《前端智能化实践》——逻辑代码生成 立即下载
无需部署的前端中间件技术——企业移动化新思路 立即下载