没有合适的资源?快使用搜索试试~ 我知道了~
getHtmlServlet
需积分: 1 0 下载量 28 浏览量
2010-04-30
16:26:32
上传
评论
收藏 4KB TXT 举报
温馨提示
试读
5页
getHtmlServlet,getHtmlServlet
资源推荐
资源详情
资源评论
package com.lin.servlet;
public class getHtmlServlet extends HttpServlet {
public getHtmlServlet() {
super();
}
public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request,response);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=gbk");
String method=request.getParameter("method");
//上传
if(method.equals("upload"))
{
//String nowDate=new SimpleDateFormat("yyyyMMddHHmmss").format(Calendar.getInstance().getTime());
DiskFileUpload fu = new DiskFileUpload();
public class getHtmlServlet extends HttpServlet {
public getHtmlServlet() {
super();
}
public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doPost(request,response);
}
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=gbk");
String method=request.getParameter("method");
//上传
if(method.equals("upload"))
{
//String nowDate=new SimpleDateFormat("yyyyMMddHHmmss").format(Calendar.getInstance().getTime());
DiskFileUpload fu = new DiskFileUpload();
资源评论
lin36093705
- 粉丝: 4
- 资源: 53
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功