![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web应用
asdwjb
这个作者很懒,什么都没留下…
展开
-
如何在struts2拦截器中获得request
由struts2原理图可知道,interceptor发生在action调用之前,拦截器的参数就是ActionInvocation(action实例),ActionInvocation里封装了HttpServletRequest,HttpServletRequest request = (HttpServletRequest) ai.getInvocationContext().get(Serv...原创 2011-12-22 15:23:31 · 91 阅读 · 0 评论 -
javascript作用域链的灵活运用1
[size=large]javascript比较出彩的运用之一:作用域链。1、对于有洁癖的前台人员来说,全局变量就像长在美女脸上的黑斑,真的无法容忍。2、《javascript权威指南》说的那样,javascript内部类嵌套越来越被广泛运用,是一种编码趋势。所以我们用作用域链这种技巧来为我们的美人除斑吧。下面举个例子,带点jQuery的色彩,不爽者可以将$和jQuery去掉,其实...原创 2013-05-21 19:58:46 · 120 阅读 · 0 评论 -
各种浏览器语言包、国际化如何配置
[size=large]如果web项目使用了国际化多语言包,切换浏览器语言包可以切换语言:[color=red]Firefox如何中英文切换[/color]首先得下载语言包,网址:[url]http://releases.mozilla.org/pub/mozilla.org/firefox/releases/[/url]根据help->about firefox中的版本找到自己要...原创 2012-04-18 15:36:13 · 1604 阅读 · 0 评论 -
RESTful初探之五(The data layer)
[size=large]原文:[url]http://www.ibm.com/developerworks/java/tutorials/j-rest/section7.html[/url]This section describes the existing domain objects that make the up data layer that your RESTful servic...原创 2012-04-12 14:34:47 · 95 阅读 · 0 评论 -
Js闭包理解、运用
[code="java"]onClick: (function (){ var pageNum = sourcePageNum; return function (node){ getChildSources(node,pageNum); pageNum =1; };...原创 2012-11-08 14:12:24 · 119 阅读 · 0 评论 -
RESTful初探之四(Restlets)
[size=large]RestletsRestlet项目为“建立REST概念与Java类之间的映射”提供了一个轻量级而全面的框架。它可用于实现任何种类的REST式系统,而不仅仅是REST式Web服务。[color=red]The Restlet framework[/color]Restlet application are akin to servlet applicati...原创 2012-04-11 18:14:51 · 375 阅读 · 0 评论 -
RESTful初探之三(Formating the resource)
[size=large]Race URIsThe RESTful API you built in the preceding section for Acme Racing covers the network endpoints or URIs but not the resources.As far as REST is concerned,the format of the resou...原创 2012-04-11 16:52:55 · 91 阅读 · 0 评论 -
RESTful初探之二(Off to the races:Building a RESTful API)
[size=large]Imagine an online application that manages races in which contestants run various distances(such as the Chicago Marathon).The application manages races(or events)and the runners associated...原创 2012-04-11 15:58:17 · 124 阅读 · 0 评论 -
RESTful初探之一(What is REST)
[size=large]英文tutorial guide[url]http://www.ibm.com/developerworks/java/tutorials/j-rest/[/url]也是以下翻译的原文链接RESTfull==REpresentation State Transfer没有好的中文翻译。RESTfull是一组架构约束条件和原则。满足这些约束条件和原则的应...原创 2012-04-11 11:32:27 · 272 阅读 · 0 评论 -
关于java Web Project引包的问题
[size=large]这里要说的是Web Project如何合理引入jar包的问题。 Web Project是被Web容器使用的,如何合理的引入jar包实际上就是如何让一个Web Project在所有Web容器都能跑起来。 常用的Web容器有jetty、tomcat、jboss、weblogic。 首先来分析Web Project的结构:有存储java文件的src文...原创 2012-02-14 17:03:17 · 128 阅读 · 0 评论 -
web容器二、jetty的学习(主要接口)
[size=large]学习资料:官方Wiki:http://docs.codehaus.org/display/JETTY/Jetty+Wikihttp://docs.codehaus.org/display/JETTY/Architecturehttp://download.eclipse.org/jetty/stable-7/xref/[color=darkred]jet...原创 2012-01-15 22:49:09 · 143 阅读 · 0 评论 -
web容器一、jetty的学习(下载源码)
[size=large]由于jetty是由java编写的web容器,因此,对web容器的学习,我从jetty开始: 首先当然是下载jetty源码,但是没有必要,因为http://download.eclipse.org/jetty/stable-7/xref/里面就是源码。对照API http://download.eclipse.org/jetty/stable-7/apidocs/...原创 2012-01-15 00:26:01 · 313 阅读 · 0 评论 -
http传参get与post的误区与总结
[size=small]众所周知的http请求有两种:[color=darkred]get与post:[/color]这两种请求的区别就是传参的参数放的位置不同,一个在Request URL,一个在Request Form Data。如果是post请求,浏览器会自动将?a=1&b=2转化为a:1 b:2第一个误区:[color=darkred]post提交是安全的[/color...原创 2012-01-11 10:18:26 · 151 阅读 · 0 评论 -
URL转义及编码
js对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent[url]http://www.w3school.com.cn/js/jsref_obj_global.asp[/url]1、 传递参数时需要使用encodeURIComponent,...原创 2012-08-31 11:01:51 · 178 阅读 · 0 评论