报错信息:
org.apache.jasper.JasperException: Unable to find taglib [s] for URI: [/struts-tags] org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:55) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:293) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:80) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:176) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:489) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1445) org.apache.jasper.compiler.Parser.parse(Parser.java:144) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244) org.apache.jasper.compiler.ParserController.parse(ParserController.java:105) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:202) org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) org.apache.jasper.compiler.Compiler.compile(Compiler.java:350) org.apache.jasper.compiler.Compiler.compile(Compiler.java:334) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:595) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) javax.servlet.http.HttpServlet.service(HttpServlet.java:742) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:90) com.chinawiserv.onecenter.itsm.sys.servlet.MenuFilter.doFilter(MenuFilter.java:71) com.chinawiserv.onecenter.itsm.utils.LoginFilter.doFilter(LoginFilter.java:86) com.jghong.sso.token.client.web.filter.SSOClientFilter.doFilter(SSOClientFilter.java:163) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:91) com.chinawiserv.onecenter.itsm.utils.P3PFilter.doFilter(P3PFilter.java:23) com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)
如果用了struts2,必须导入一下5个包
freemarker-2.3.8.jar;
struts2-core-2.0.14.jar;
xwork-2.0.7.jar;
commons-logging-1.0.4.jar;
ognl-2.6.11.jar;
jar版本不一定非要这些,但必须要这2个jar
我的是少了freemarker和ognl
添加进去就好了