JSP shows the code of data in Oracle

xiaoxiao2021-03-06  83

<% @ 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 ();%> < / html>

转载请注明原文地址:https://www.9cbs.com/read-107355.html

New Post(0)