异常——(10)The JSP specification requires that an attribute name is preceded by whitespace

项目部署到tomcat 8.0 报这个错误

严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /WEB-INF/pages/mm/mdimpexp/mdImportFromDb.jsp (line: 29, column: 78) The JSP specification requires that an attribute name is preceded by whitespace
	at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
	at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:275)
	at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:91)
	at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:165)
	at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:154)
	at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1231)
	at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1455)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:139)
	at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:227)
	at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
	at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:363)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)

解决方法:mdImportFromDb.jsp第29行两个属性间缺少空格,添加空格后问题没有了。

你可能感兴趣的:(异常)