This is my source of JSP and the error information.
{========Source code========}
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>My Page</h1>
<%! int b; %>
<%! String h; %>
<%
String url="jdbc:odbc:ok";
String queryString="";
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection(url,"pharm","pharm");
Statement stmt=con.createStatement();
queryString="select prrfnbr,prnbr from product where prmenbr=66";
ResultSet rs=stmt.executeQuery(queryString);
if(rs.next()!=null){
bian=rs.getInt(1);
hao=rs.getString(2);
rs.close();
stmt.close();
con.close();
}catch(Exception e){ }
%>
<table><tr><td>number</td><td>value</td></tr>
<tr><td>
<%= b %>
</td><td>
<td><tr>
<%= h %>
</td></tr>
</body>
</html>
{========Error infomation======}
500 Internal Server Error
Java Server Page Translation Error
Error during compilation :
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_test.java:102:
'catch' without 'try'.
}catch(Exception e){ }
^
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_test.java:129:
'try' without 'catch' or 'finally'.
}
^
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_test.java:129: '}'
expected.
}
^
3 errors
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html