(1)pageContext对象这个对象代表页面上下文,该对象主要用于访问JSP之间的共享数据。pageContext是PageContext类的实例,使用pageContext可以访问page、request、session、application范围的变量。getAttribute(String...
分类:
其他好文 时间:
2014-08-26 13:13:56
阅读次数:
180
The request sent by the client was syntactically incorrect. 这个问题是因为 SpringMvc controller 里面的方法参数和请求参数不匹配。请求参数在 Contoller 的方法参数对象中不存在则会报这个错误。如 : Cont.....
分类:
其他好文 时间:
2014-08-26 11:17:46
阅读次数:
162
一、map
后台代码:
Map map2 = new HashMap();
map2.put("a","hello world");
map2.put("b","this is map");
request.setAttribute("map2",map2);前台代码:
${item.key} > 或者 ${item['a']}
${item.value}
二、map(Obj...
分类:
其他好文 时间:
2014-08-26 09:56:25
阅读次数:
331
What Is a Servlet?
A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed by means of a request-response programming model. Although...
分类:
编程语言 时间:
2014-08-26 09:55:46
阅读次数:
218
The lifecycle of a servlet is controlled by the container in which the servlet has been deployed. When a request is mapped to a servlet, the container performs the following steps.
If an instance...
分类:
编程语言 时间:
2014-08-26 09:55:25
阅读次数:
292
HttpCookie cookie = HttpContext.Current.Request.Cookies["__shareuser"] ?? new HttpCookie("__shareuser");//检查是否存在 __shareuser Cookie如果不存在 ,新增一个cookie.V...
分类:
其他好文 时间:
2014-08-26 09:39:55
阅读次数:
203
1.session.setAttribute()和session.getAttribute()配对使用,作用域是整个会话期间,在所有的页面都使用这些数据的时候使用。2.request.setAttribute()和request.getAttribute()配对使用,作用域是请求和被请求页面之间。 ...
分类:
其他好文 时间:
2014-08-26 09:38:55
阅读次数:
215
1.添加源,保存退出vi/etc/apt/sources.list
#wheezy-backports
debhttp://ftp.debian.org/debian/wheezy-backportsmain2.更新源并安装包:apt-getupdate
apt-getinstallrequest-tracker4rt4-apache2rt4-clientsrt4-db-postgresqlapache2-doclynxpostgresqlapache2libapache-db..
分类:
其他好文 时间:
2014-08-26 03:00:56
阅读次数:
221
Broker 模式采用 broker 模式对分布式计算进行简单模拟。系统在一个进程内模拟分布式环境,因此不涉及网络编程和进程间通信,Broker 通过本地函数调用的方式实现 request 和 response的转发。采用 broker 模式对分布式计算进行简单的模拟,要求如下:设计四个 serve...
分类:
其他好文 时间:
2014-08-26 00:19:35
阅读次数:
529
request对象的创建 对于request对象的创建,我们总会第一时间反映到下列语句 var?request=new?XMLHttpRequest(); 不过因为各大浏览器之间的相互斗殴行为,事情是不会这么简单的。 比如非常经典的:IE浏览器没有...
分类:
其他好文 时间:
2014-08-25 23:03:15
阅读次数:
654