相关阅读:Express 4.X API 翻译[一] -- Application篇Express4.XApi 翻译[二] -- Request篇Express4.XApi 翻译[三]--- Response篇Express4.XApi 翻译[四]--- Router篇本篇是Express 4.0 ...
相关阅读:Express 4.X API 翻译[一] -- Application篇Express4.XApi 翻译[二] -- Request篇Express4.XApi 翻译[三]--- Response篇Express4.XApi 翻译[四]--- Router篇本文是Express 4.x ...
分类:
移动开发 时间:
2015-04-16 21:36:13
阅读次数:
233
struts2中获得request、response和session的三种方法
(1)非IoC方式
方法一:使用org.apache.struts2.ActionContext类,通过它的静态方法getContext()获取当前Action的上下文对象。
ActionContext ctx = ActionContext.getContext();
ctx.put("liuwei", ...
分类:
其他好文 时间:
2015-04-16 17:38:01
阅读次数:
168
//传入对应的需要打包的file 集合对象//文件打包下载 public static HttpServletResponse downLoadFiles(List files, HttpServletRequest request, HttpServletResponse response) .....
分类:
编程语言 时间:
2015-04-15 13:25:51
阅读次数:
181
1.JSP内置对象:out, request, response, page, session, Exception, application, config, pageContext.内置对象是JSP的核心知识,因为JSP页面中的很多功能都被封装在JSP的内置对象中。内置对象与JAVA语言中的对象...
分类:
Web程序 时间:
2015-04-15 12:55:23
阅读次数:
129
在一般事务处理页面(即.ashx文件)中,想要使用Request,Response很简单,但是要想使用Session对象就会报错:“未将对象引用设置到对象的实例”或者英文“Object reference not set to an instance of an object.”那要如何才能使用Se...
分类:
其他好文 时间:
2015-04-15 12:46:33
阅读次数:
115
一、Servlet使用1、新建servlet包2、新建FirstServlet类(new-Servlet),父类为HttpServletpublicvoiddestroy(){super.destroy();}publicvoiddoGet(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{response.setContentType("text..
分类:
其他好文 时间:
2015-04-15 11:37:09
阅读次数:
113
HttpResponseresponse=client.execute(httpPost);
//获取响应码
status=response.getStatusLine().getStatusCode();
HttpEntityhttpEntity=response.getEntity();
//将H中返回实体转化为输入流
InputStreamis=httpEntity.getContent();
//读取输入流,即返回文本内容
StringBuf..
分类:
Web程序 时间:
2015-04-14 20:00:21
阅读次数:
170
什么是filterFilter是java下的一种过滤器,能实现对java web程序客户端和服务端消息的过滤,也就是在服务器端接受request之前,可以预先对request进行处理,或在客户端接受response之前,对response进行处理。Filter的使用非常的灵活,是在“链”到客户端和服...
分类:
编程语言 时间:
2015-04-14 19:29:29
阅读次数:
165
第一步:建立一个MbPage.html页面第二步:后台生成 public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string mbPath = context.S...
分类:
Web程序 时间:
2015-04-14 16:37:20
阅读次数:
121