当前位置: 技术问答>java相关
关于JSP中内部对象的一个问题?
来源: 互联网 发布时间:2015-01-13
本文导语: 我用的是Apache+Tomcat, 为什么总是出现下面的错误,我已经把能加入CLASSPATH的jar文件都加进去了 在Tomcat窗口中总是说Response是未定义的变量,请问有人知道这是怎么回事吗? Error: 500 Location: /testdir/jsp/refresh.jsp Internal Se...
我用的是Apache+Tomcat,
为什么总是出现下面的错误,我已经把能加入CLASSPATH的jar文件都加进去了
在Tomcat窗口中总是说Response是未定义的变量,请问有人知道这是怎么回事吗?
Error: 500
Location: /testdir/jsp/refresh.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPC:Tomcatworklocalhost_8080%2Ftestdir_0002fjsp_0002frefresh_0002ejsprefresh_jsp_0.java:65: ?????????Response
Response.setHeader("Refresh","5");
^
1 ???
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
为什么总是出现下面的错误,我已经把能加入CLASSPATH的jar文件都加进去了
在Tomcat窗口中总是说Response是未定义的变量,请问有人知道这是怎么回事吗?
Error: 500
Location: /testdir/jsp/refresh.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPC:Tomcatworklocalhost_8080%2Ftestdir_0002fjsp_0002frefresh_0002ejsprefresh_jsp_0.java:65: ?????????Response
Response.setHeader("Refresh","5");
^
1 ???
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
|
response第一个字母是小写,不是大写,