The ${pagecontext.request.contextpath}/servlet is used in the JSP page form action, but always prompts for errors, The error is as follows: Javax.servlet.jsp.PageContext cannot is resolved to a type
On-line answer said to lack Jsp-api.jar, import this package does not error, but the program started to visit this page when the following error occurred:
Org.apache.jasper.JasperException:Unable to read TLD "Meta-inf/c.tld" from JAR file "file:/c:/users/jason/.m2/ Repository/javax/servlet/jstl/1.2/jstl-1.2.jar ": org.apache.jasper.JasperException:Failed to load or instantiate Taglibraryvalidator class: Org.apache.taglibs.standard.tlv.JstlCoreTLVorg.apache.jasper.compiler.DefaultErrorHandler.jspError ( defaulterrorhandler.java:51) Org.apache.jasper.compiler.ErrorDispatcher.dispatch (errordispatcher.java:409) Org.apache.jasper.compiler.ErrorDispatcher.jspError (errordispatcher.java:181) Org.apache.jasper.compiler.taglibraryinfoimpl.<init> (taglibraryinfoimpl.java:182) Org.apache.jasper.compiler.Parser.parseTaglibDirective (parser.java:386) Org.apache.jasper.compiler.Parser.parseDirective (parser.java:449) Org.apache.jasper.compiler.Parser.parseElements (parser.java:1396) Org.apache.jasper.compiler.Parser.parse ( parser.java:130) Org.apache.jasper.compiler.ParserController.doParse (parsercontroller.java:255) Org.apache.jasper.compiler.parsercontroller.pArse (parsercontroller.java:103) Org.apache.jasper.compiler.Compiler.generateJava (compiler.java:185) Org.apache.jasper.compiler.Compiler.compile (compiler.java:347) Org.apache.jasper.compiler.Compiler.compile ( compiler.java:327) Org.apache.jasper.compiler.Compiler.compile (compiler.java:314) Org.apache.jasper.JspCompilationContext.compile (jspcompilationcontext.java:592) Org.apache.jasper.servlet.JspServletWrapper.service (jspservletwrapper.java:317) Org.apache.jasper.servlet.JspServlet.serviceJspFile (jspservlet.java:313) Org.apache.jasper.servlet.JspServlet.service (jspservlet.java:260) Javax.servlet.http.HttpServlet.service ( httpservlet.java:717) Acl.demo.servlet.filter.SecurityFilter.doFilter (securityfilter.java:50)
Online said need to remove Jsp-api.jar. I wouldn't have it. Isn't that a contradiction to each other?
After repeated experiments, the solution is as follows:
do not copy the Jsp-api.jar directly to the Lib directory, but rather through an external jar package reference.
Project Right-click->properties->libraries->add External jars-
Select the external Jsp-api.jar (available in the Tomcat6 Lib directory).
650) this.width=650; "title=" capture. PNG "src=" http://s3.51cto.com/wyfs02/M02/70/82/wKioL1W5hcKBXDicAAEOGC3UMIE899.jpg "alt=" Wkiol1w5hckbxdicaaeogc3umie899.jpg "/>
This article is from the "Nothing-skywalker" blog, please be sure to keep this source http://tianxingzhe.blog.51cto.com/3390077/1679924
Eclipse Javax.servlet.jsp.PageContext cannot is resolved to a type error resolution