当前页面: 开发资料首页 → JSP 专题 → JSP代码(添加,查询)
JSP代码(添加,查询)
摘要: JSP代码(添加,查询)
JSP技术:
----------------------------------------
public class ISOtoGb2312
{
public static String convert( String str )
{
try
{
byte<> bytesStr=str.getBytes( "ISO-8859-1" ) ;
return new String( bytesStr, "gb2312" ) ;
}
catch( Exception ex)
{
return str ;
}
}
}
-------------------------------------------------------------------
<%@ page contentType="text/html; charset=GB2312" %>
<head>
输入数据
</head>
<body bgcolor="#ffffff">
请输入数据:
<form method="POST" action="insert.jsp">