文章分类 -  java

摘要:/** * 方法描述:<b>测试类</b></br> * 备 注: </br> * 创 建 人: </br> * 创建日期: </br> */public class TestFileStream{ //文件和压缩包存储的位置String tempFilePath="C:/temp/" List<String> fileList=new ArrayList<String>(); fileList.add(tempFilePath+"file1.txt"); f 阅读全文

posted @ 2013-03-20 15:55 关心 阅读(1698) 评论(0) 推荐(0) |

摘要:第一种方法:import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.NameValuePair;import org.apache.http.client.HttpClient;import org.apache.http.client.entity.UrlEncodedFormEntity;import org.apache.http.client.methods.HttpPost;import org.apache.http.impl.client.Defaul 阅读全文

posted @ 2013-03-07 18:19 关心 阅读(1948) 评论(0) 推荐(0) |

摘要:1.jsp页面:<form action="uptest.action" method="post" enctype="multipart/form-data" ><th> <input id="datafile" name="datafile" type="file" style="width: 240px; height: 21px" /></th><th> <input class=& 阅读全文

posted @ 2013-03-07 18:02 关心 阅读(468) 评论(0) 推荐(0) |

摘要:项目工程截图如下:1.UserService接口:/** * 定时器执行的任务 * @throws BasicException */public void doTaskByTrigger() throws BasicException;2.UserServiceImpl类: /** * 定时器执行的任务 * @throws BasicException */public void doTaskByTrigger() throws BasicException{Timestamp currentTime=new Timestamp(System.currentTimeMillis());Sys 阅读全文

posted @ 2012-10-23 21:05 关心 阅读(96) 评论(0) 推荐(0) |

摘要:开发服务端:1.下载需要的包:http://xfire.codehaus.org/Download。2.创建项目名称为XfireWebService的Web项目,并且导入jar。3.创建IReaderObject接口。4.创建实现接口的ReaderObjectImpl类。5.在项目的src目录下创建META-INF文件夹,再在META-INF文件夹下创建xfire文件夹。6.在xfire文件夹下创建services.xml文件,内容如下:<?xml version="1.0" encoding="UTF-8"?> <beans xmln 阅读全文

posted @ 2012-09-25 21:41 关心 阅读(279) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3