标签:mail exce java void ini int turn catch print
import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class acceptUserRegist extends HttpServlet { public String codeToString(String str) {//处理中文字符串的函数 String s=str; try { byte tempB[]=s.getBytes("ISO-8859-1"); s=new String(tempB); return s; } catch(Exception e) { return s; } } public void init(ServletConfig config) throws ServletException { super.init(config); } public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException { //设置mime response.setContentType("text/html;charset=GB2312"); PrintWriter out=response.getWriter(); out.println(""); out.println("这是新用户注册所提交的数据:标签:mail exce java void ini int turn catch print
原文地址:http://www.cnblogs.com/jgrs/p/7768335.html