📄 accept.jsp
字号:
<%@page contentType="text/html;charset=gb2312" %>
<%@page import="java.io.*" %>
<html>
<body>
<%
try{
InputStream in=request.getInputStream();
File f=new File("d:/jsp2007","B.txt");
FileOutputStream o=new FileOutputStream(f);
byte b[]=new byte[1000];
int n;
while((n=in.read(b))!=-1)
o.write(b,0,n);
o.close();
in.close();
}catch(IOException e){
}
out.print("文件已上传");
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -