struts1和spring有两种整合的方法一种是action和spring bean映射;一种是将action交给spring初始化第一种方式:访问.do的URL->tomcat接收到request-〉到Struts配置文件里找对应的action-〉找到对应的action组件(Action那个类)...
分类:
编程语言 时间:
2014-08-25 10:01:34
阅读次数:
264
AndroidAsync is a low level network protocol library. If you are looking for an easy to use, higher level, Android aware, http request library, check out?Ion?(it is built on top of AndroidAsync)....
分类:
移动开发 时间:
2014-08-24 20:57:53
阅读次数:
358
OAuth 授权在 iOS 中的实现方式在 iOS App 中,需要绑定微博、twitter、flickr 等第三方平台账号时,一般用OAuth授权的方式。 OAuth 1.0 授权大致分为以下三步:客户端向平台申请一个 request token,该 token 是未授权的;客户端打开平台提供的登...
分类:
移动开发 时间:
2014-08-24 16:39:42
阅读次数:
365
web.xml文件1中相同。
1)HelloAction类中的代码:
public class HelloAction {
public String execute() {
ActionContext ctx = ActionContext.getContext();
// 仅仅只是访问和添加三个范围属性使用该方法
// ctx.getApplication().put(...
分类:
移动开发 时间:
2014-08-24 10:20:52
阅读次数:
203
2014-08-23今天开始学习Node.js,在写一个文件上传的功能时候,调用fs.renameSync方法错误出错代码所在如下: 1 function upload(response,request){ 2 console.log("upload called"); 3 va...
分类:
Web程序 时间:
2014-08-24 00:17:21
阅读次数:
376
一直以来,只知道out可以向客户端浏览器页面输入数据(html、txt等类型),今天在和php程序联调时发现自己的理解出现了偏差。out是输出字符流,即servlet接受到request请求后,servlet使用out来返回结果,不管客户端是什么(浏览器或者httpclient 或者别的serlve...
分类:
其他好文 时间:
2014-08-24 00:12:31
阅读次数:
192
1.jsp的九大隐式对象
request
HttpServletRequest
response HttpServletResponse
session HttpSession
application
ServletcContext
config ServletConfig
exception
(特殊情况下使用)
page
this(本JSP页面)
ou...
分类:
Web程序 时间:
2014-08-23 20:24:31
阅读次数:
205
// 判断浏览器 HttpServletRequest request = ServletActionContext.getRequest(); String Agent = request.getHeader("User-Agent"); if (null != Agent) { Agent = ...
分类:
其他好文 时间:
2014-08-23 18:56:11
阅读次数:
161
.net web 使用IIS ARR(Application Request Route)技术实现web的高性能、高可靠、易扩展及负载均衡。ARR的使用请参考 IIS负载均衡-Application Request Route详解 一般应用场景见下图所示,其中一台服务器只做ARR服务器,接受客户端....
分类:
其他好文 时间:
2014-08-23 18:53:21
阅读次数:
225
话说起来无论上不上gae都能很快的浏览stackflow,但就是无法登录。在网上找来找去都是那个方法,在控制台查看那些地址被墙了,然后添加那些被墙的地址到proxy的Switch Rule。但是还是不能够登入,系统有错误提示:Sorry, your request could not be comp...
分类:
其他好文 时间:
2014-08-23 16:40:01
阅读次数:
257