jsp错误请教?谢谢!

来源:百度知道 编辑:UC知道 时间:2024/06/09 17:39:27
An error occurred at line: 59 in the jsp file: /index.jsp
Syntax error, insert "}" to complete Block
56: <tr>
57: <td height="5" colspan="2" ><hr size="1" color="#990099" width="10%"></td>
58: </tr>
59: <%}
60: finally{
61: if(rs!=null){
62: try{rs.close();}catch(Exception e){e.printStackTrace();}

An error occurred at line: 61 in the jsp file: /index.jsp
rs cannot be resolved
58: </tr>
59: <%}
60: finally{
61: if(rs!=null){
62: try{rs.close();}catch(Exception e){e.printStackTrace();}
63: }
64: if(sm!=null){

An error occurred at line: 62 in the jsp file: /index.jsp
rs cannot be resolved
59: <%}
60: finally{
61: if(rs!=null){
62: try{rs.close();}catch(Exception e){e.printStackTrace();}
63: }
64: if(sm!=null){
65: try{sm.clos

59行的 你前面是不是少括号啊
61和62行的 说rs没有定义,你是不是在finally前面的括号里边定义的rs?finally是看不见前面if或者for,while循环里边的定义的
还是解决不了的话把全部代码贴上来

你的rs是什么啊,是ResoutSet对象吧。肯定没有定义

代码不全?59那个花括号对应哪个?

老兄,在页面中最好别嵌入java代码,用框架分层实现