1.查看是否有新消息 url:/get/message/status?user_id={user_id} method:get response:{ "code": "ok", "msg": "", "data": 0 //新消息数目}2.获取消息列表url:/get/mess...
分类:
其他好文 时间:
2015-02-03 22:43:34
阅读次数:
145
输出
bbbbbbb
aaaaa
因为out 是写在jspwriter的缓冲区 然后在写在response的缓冲区
aaaaaa
<%
//out.write("aaaaa");
response.getW...
分类:
Web程序 时间:
2015-02-03 19:27:35
阅读次数:
123
一、过滤器简介二、在Eclipse中创建过滤器三、使用过滤器设置全部web字符编码public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException,...
分类:
Web程序 时间:
2015-02-03 14:48:59
阅读次数:
122
1、问题
在使用SpringMVC3时,需要对response到页面的数据进行编码设置则需要自定义注解数据格式化类来对页面传过来的字符串进行格式化。
编码设置:...
分类:
编程语言 时间:
2015-02-03 11:17:27
阅读次数:
253
1、转发与重定向【****】 * 重定向:重新确定请求方向 * 发送者:服务器 --> 响应(response)浏览器 * 执行者:浏览器 --> 重新请求 * 跳转 * response.sendRedirect("/day04/1.html"); * //完全等价,隐藏了HTTP协议的...
分类:
其他好文 时间:
2015-02-03 01:49:06
阅读次数:
227
HttpWebRequest request = null; Stream webStream = null; HttpWebResponse response = null; StreamReader reader = null; ...
分类:
Web程序 时间:
2015-02-02 17:31:33
阅读次数:
2893
由于加载模板、填充 context 、将经解析的模板结果返回为 HttpResponse 对象这一系列操作实在太常用了,Django 提供了一条仅用一行代码就完成所有这些工作的捷径。该捷径就是位于 django.shortcuts 模块中名为 render_to_response() 的函数。大多数...
分类:
其他好文 时间:
2015-02-02 17:17:53
阅读次数:
97
Struts中取得Request和Response、Session的方法(一) public HttpServletRequest request = ServletActionContext.getRequest(); public HttpServletResponse resp...
分类:
其他好文 时间:
2015-02-02 10:43:50
阅读次数:
198
1、Path总结【★★★★】 1、java项目 1 File file = new File(""); * 使用java命令,输出路径是,当前java命令停留的盘符 * F:\study\JAVA开发学习路线\后台----------------技术\JAVAWEB\day03\bin ...
分类:
其他好文 时间:
2015-02-01 21:48:43
阅读次数:
199
firefox有个证书在线验证的功能,默认开启。每次访问https网站时,火狐会访问ocsp.digicert.com以查询证书合法性,如果这个网站不能访问则默认https证书是无效的,停止加载网页并报错。
解决办法:...
分类:
其他好文 时间:
2015-02-01 12:13:30
阅读次数:
335