requires that an attribute name is preceded by whitespace错误总结
requires that an attribute name is preceded by whitespace异常总结在tomcat7.0下,会报一个异常:org.apa
requires that an attribute name is preceded by whitespace异常总结
在tomcat7.0下,会报一个异常:
org.apache.jasper.JasperException: /head.jsp(1,84) The JSP specification requires that an attribute name is preceded by whitespace
head.jsp我是用<jsp:include page="head.jsp" flush="true"/>引入的,在tomcat6.0的环境下,不会报以上的异常,但在tomcat7.0会报这个异常,后来,仔细查了一下head.jsp文件第一行。原来我真的漏了一个空格,
<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%>
在pageEncoding之前漏了一个空格。改正,重新运行,ok了!
1 楼 smartan 2011-09-16 <%@ page contentType="text/html;charset=GB2312"%>
<%@ taglib tagdir="/WEB-INF/tags"prefix="beijing"%>
<%@ taglib tagdir="/WEB-INF/tags/geng"prefix="dalian"%>
<html><body bgcolor=cyan>
<h3>以下是调用tag文件的效果:</h3>
<beijing:AddSum/>
<h3>以下是调用tag文件的效果:</h3>
<dalian:EvenSum/>
</body></html>
还有两个tag文件 应该没用了吧 先不贴了
异常:org.apache.jasper.JasperException: /example3_1.jsp (line: 2, column: 49) The JSP specification requires that an attribute name is preceded by whitespace
出现异常 和你的相似 希望能帮我解决一下 谢谢啦
这个异常是有时候出的 即多刷新几次 就出来
邮箱:accacc@126.com QQ335905211 希望能帮忙