@RequestMapping(value="getCountyBycityId") public void getCountyBycityId(HttpServletRequest request,HttpServletResponse response) throws Exception...
分类:
移动开发 时间:
2014-11-28 15:45:27
阅读次数:
134
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
可以跨域下载
/**
* 音频下载
*/
@RequestMapping("/audio/download")
public void downloadFile(HttpServletRequest request, HttpServletResponse response) throws IOException {
/...
分类:
编程语言 时间:
2014-11-27 12:46:03
阅读次数:
141
1 //包装request,增强getParameter方法 2 class MyReq extends HttpServletRequestWrapper{ 3 private HttpServletRequest req; 4 public MyReq(...
分类:
其他好文 时间:
2014-11-25 18:06:26
阅读次数:
181
/** * 从HTTP请求中获取客户IP地址 * * @param request http请求 * @return 客户IP地址 */ public static String getIPAddress( HttpServletRequest request ) { String ip = req...
分类:
Web程序 时间:
2014-11-25 16:07:45
阅读次数:
304
public boolean exportDataToCSV(List dataList, LinkedHashMap showTitle, String fileName, HttpServletRequest request, HttpServletResponse response) ...
分类:
编程语言 时间:
2014-11-25 15:51:27
阅读次数:
207
public ModelAndView GetImage(HttpServletRequest request,HttpServletResponse response) throws Exception {Map maps = new HashMap();try {// 创建一个临时文件存放要上传...
分类:
移动开发 时间:
2014-11-24 17:10:23
阅读次数:
233
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
test servlet/** * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) */ protected void doGet(HttpServletReq...
分类:
Web程序 时间:
2014-11-20 18:20:42
阅读次数:
168
@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