我运行的程序只要以jsp结尾就连普通的html也不能运行。奇了! 例如: <HTML> <BODY> Hello,World! </BODY> </HTML> 同样报错: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error--------------------------------------------------------------------------------type Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSP C:\Tomcat4\work\localhost\firstjsp\hello$jsp.java:61: Incompatible type for method. Explicit cast needed to convert java.lang.Throwable to java.lang.Exception. if (pageContext != null) pageContext.handlePageException t); ^ 1 error可是html+servlet却可以运行,能运行jsp的朋友快来帮忙啊!
例如:
<HTML>
<BODY>
Hello,World!
</BODY>
</HTML>
同样报错:
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error--------------------------------------------------------------------------------type Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSP
C:\Tomcat4\work\localhost\firstjsp\hello$jsp.java:61: Incompatible type for method. Explicit cast needed to convert java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException t); ^
1 error可是html+servlet却可以运行,能运行jsp的朋友快来帮忙啊!