出错的结果是
An error occured between lines: 123 and 142 in the jsp file: /jsp/gap25/forum.jspGenerated servlet error:
C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java:17: Class org.apache.jsp.IOException not found in throws.
throws IOException {
^
An error occured between lines: 123 and 142 in the jsp file: /jsp/gap25/forum.jspGenerated servlet error:
C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java:19: Exception java.io.IOException must be caught, or it must be declared in the throws clause of this method.
out.print("<a href=forumcontent.jsp?serial=" + serial + ">" + title + "</a>");
^C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java:57: Class org.apache.jsp.IOException not found in try.
try {
^
Note: C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
3 errors, 1 warning
An error occured between lines: 123 and 142 in the jsp file: /jsp/gap25/forum.jspGenerated servlet error:
C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java:17: Class org.apache.jsp.IOException not found in throws.
throws IOException {
^
An error occured between lines: 123 and 142 in the jsp file: /jsp/gap25/forum.jspGenerated servlet error:
C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java:19: Exception java.io.IOException must be caught, or it must be declared in the throws clause of this method.
out.print("<a href=forumcontent.jsp?serial=" + serial + ">" + title + "</a>");
^C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java:57: Class org.apache.jsp.IOException not found in try.
try {
^
Note: C:\tomcat\work\localhost\examples\jsp\gap25\forum$jsp.java uses or overrides a deprecated API. Recompile with "-deprecation" for details.
3 errors, 1 warning
解决方案 »
- 如何关闭springmvc中的控制台Debug和INFO信息
- EL表达式
- 各位高手求教一个问题.最近更换了个服务器,结果一做修改或添加操作就出异常.原来服务器和本地都可以,下面是异常和详细说明.
- 新手:怎么写错误处理页的问题
- jsp页面空白
- 为什么我自己设的虚拟目录下调试JSP文件不成功?
- 一个关于java连数据库的问题 请大家帮忙了 先谢谢了啊
- 请问写好的SERVLET程序如何在JAVA环境下运行(环境为:JDK1.4,JSWDK服务器,JSP)?
- 谁有jfreechart的 servlet 的 demo
- 请教一个关于javabean极为幼稚的问题
- String类型变量转换成Double类型的问题。
- 我想问一下如果用户名和密码输入超过一定次数,页面就自动锁死或弹出警告是怎么做的,谢谢!
<%@ page import="java.io.*"%>
搞定了。
要加上<%@ page import=Java.lang.*"%>
<%@ page import=Java.io.*"%>