org.apache.jasper.JasperException: Unable to load class for JSP问题引发的思考

来源:互联网 发布:淘宝大学新手开店视频 编辑:程序博客网 时间:2024/05/16 08:32

   今天把ssh项目的tomcat从5.0换成了5.5,其他都很正常,但是当我打开一个含有以下代码时

 <jsp:param name="keyWord" value=<%=request.getAttribute("keyWord")%> />

发现了以下的错误:

org.apache.jasper.JasperException: Unable to load class for JSP

 

Attribute value request.getAttribute("keyWord") is quoted with " which must be escaped when used within the value"

后来我把这句话删了就没事了。不知道是什么原因啊?

原创粉丝点击