<% @ Page ContentType = "Text / HTML; Charset = GB2312"%> <% @ page import = "java.sql. *"%>
String S2 = new string ((rs.getstring (2)). GetBytes ("ISO-8859-1"), "GB2312");%> Your first field content is: <% = S1%>
Your second field content is: <% = S2%>
<%}%> <% out.print ("Database operation success, congratulations");%> <% rs.close (); stmt.close (); conn.close ();%> body> < / html>