码迷,mamicode.com
首页 >  
搜索关键字:httpservletrequest    ( 1478个结果
ObjectMapper 返回json 串
@RequestMapping(value="getCountyBycityId") public void getCountyBycityId(HttpServletRequest request,HttpServletResponse response) throws Exception...
分类:移动开发   时间:2014-11-28 15:45:27    阅读次数:134
MyEclipse 秘钥生成器
importjava.io.*;importjava.text.ParseException;importjava.text.SimpleDateFormat;importjava.util.Date;importjavax.servlet.http.HttpServletRequest;publicclassMyEclipseGen{privatestaticfinalStringLL="Decompilingthiscopyrightedsoftwareisaviolationofbothyourlice..
分类:系统相关   时间:2014-11-27 12:55:23    阅读次数:272
springmvc下载文件
可以跨域下载 /** * 音频下载 */ @RequestMapping("/audio/download") public void downloadFile(HttpServletRequest request, HttpServletResponse response) throws IOException { /...
分类:编程语言   时间:2014-11-27 12:46:03    阅读次数:141
包装 request Demo
1 //包装request,增强getParameter方法 2 class MyReq extends HttpServletRequestWrapper{ 3 private HttpServletRequest req; 4 public MyReq(...
分类:其他好文   时间:2014-11-25 18:06:26    阅读次数:181
从HTTP请求中获取客户IP地址
/** * 从HTTP请求中获取客户IP地址 * * @param request http请求 * @return 客户IP地址 */ public static String getIPAddress( HttpServletRequest request ) { String ip = req...
分类:Web程序   时间:2014-11-25 16:07:45    阅读次数:304
java导出cvs
public boolean exportDataToCSV(List dataList, LinkedHashMap showTitle, String fileName, HttpServletRequest request, HttpServletResponse response) ...
分类:编程语言   时间:2014-11-25 15:51:27    阅读次数:207
IOS后台文件上传
public ModelAndView GetImage(HttpServletRequest request,HttpServletResponse response) throws Exception {Map maps = new HashMap();try {// 创建一个临时文件存放要上传...
分类:移动开发   时间:2014-11-24 17:10:23    阅读次数:233
实用的request接收值的工具类
1 2 import java.io.UnsupportedEncodingException; 3 4 import javax.servlet.http.HttpServletRequest; 5 6 7 public class ParamUtil { 8 ...
分类:其他好文   时间:2014-11-24 11:27:16    阅读次数:198
jquery Jsonp的使用
test servlet/** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletReq...
分类:Web程序   时间:2014-11-20 18:20:42    阅读次数:168
servlet3.0上传文件
@WebServlet("/upload") @MultipartConfig public class UploadServlet extends HttpServlet{ @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) ????????throws Serv...
分类:Web程序   时间:2014-11-16 02:07:46    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!