我是刚开始学习这个,做练习有个问题过不去
type Exception reportmessage
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 12 in the jsp file: /config/config1.jsp
Enumeration cannot be resolved to a type
9: <body background="file:///E|/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/ROOT/application/0013.jpg" text="#000000">
10: <servlet>
11: <%
12: Enumeration paraEnu=config.getInitParameterNames();
13: if(paraEnu.hasMoreElements())
14: {out.print(paraEnu.nextElement().toString());}
15: out.print("Servlet 引擎的主版本号:");
Stacktrace:
org.apache.(DefaultErrorHandler.java:85)
org.apache.(ErrorDispatcher.java:330)
org.apache.(JDTCompiler.java:415)
org.apache.(Compiler.java:308)
org.apache.(Compiler.java:286)
org.apache.(Compiler.java:273)
org.apache.jasper.(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
有没有人给解答一下 谢谢啊
我把页面放上来了
[[it] 本帖最后由 qpkingx 于 2009-8-1 12:41 编辑 [/it]]
config1.rar
(907 Bytes)
[ 本帖最后由 qpkingx 于 2009-8-7 15:30 编辑 ]