mvc模式搭建,外面还需要app.js引导。store传递proxy使用extraParams。传递形式默认是以:?name=***,get形式传递,servlet可直接用request.getParameter("name")获取;
分类:
Web程序 时间:
2014-09-23 00:39:03
阅读次数:
197
view函数#views.pydefdisplay_meta(request):
values=request.META.items()
values.sort()
html=[]
fork,vinvalues:
html.append(‘<tr><td>%s</td><td>%s</td></tr>‘%(k,v))
returnHttpResponse(‘<table>%s</table>‘%‘\n‘.joi..
分类:
其他好文 时间:
2014-09-22 19:55:53
阅读次数:
251
参考配置events { worker_connections 65535; use epoll; } http { log_format f_nginx "$remote_addr`$server_addr`$server_protocol`$request_method`$se...
分类:
其他好文 时间:
2014-09-22 18:54:13
阅读次数:
162
A pending tag system and method to maintain data coherence in a processing node during pending transactions in a transaction pipeline. A pending tag s...
分类:
其他好文 时间:
2014-09-22 18:41:03
阅读次数:
232
1.调用wcf时日志记录如下:System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about t...
分类:
其他好文 时间:
2014-09-22 17:12:52
阅读次数:
282
函数原型 static ngx_int_t ngx_http_request_body_filter(ngx_http_request_t *r, ngx_chain_t *in); 此函数是nginx body解析中重要的函数,只要nginx读取到数据,就会调用此函数 函数定义如下 static ngx_int_t...
分类:
其他好文 时间:
2014-09-22 15:32:43
阅读次数:
328
本来以为把jsp页面设置为UTF-8,服务器端用filter把request和response设置为utf-8,中文问题应该就差不多了。但tomcat似乎中间给我我们加了步骤。1 页面页面中设置的编码,我们post的数据就会按照页面的编码进行 encode,比如 我们要post数据为 site=博客...
分类:
其他好文 时间:
2014-09-22 13:52:02
阅读次数:
217
概述CSRF是Cross Site Request Forgery的缩写,中文是跨站点请求伪造;接下来将和大家分享这种攻击的原理、实施的方法、以及防御的几种方案;CSRF攻击的原理通过在恶意网站部署好攻击代码和相关数据,然后引导目标网站的已经授权的用户进入恶意网站,由于浏览器已经获得了目标网站的用户...
分类:
其他好文 时间:
2014-09-22 12:24:22
阅读次数:
224
消息传递有很多种方式,请求/响应(Request/Reply)是最常用的。在前面的博文的例子中,很多都是采用请求/响应的方式,当服务器接收到消息后,会立即write回写一条消息到客户端。HTTP协议也是基于请求/响应的方式。但是请求/响应并不能满足所有的消息传递的需求,有些需求可能需要服务端主动推送...
分类:
Web程序 时间:
2014-09-22 11:20:02
阅读次数:
306
A multiprocessor computer system is provided having a multiplicity of sub-systems and a main memory coupled to a system controller. An interconnect mo...
分类:
其他好文 时间:
2014-09-22 02:05:02
阅读次数:
349