码迷,mamicode.com
首页 >  
搜索关键字:__getattribute__    ( 645个结果
request.getParameter() 和request.getAttribute() 区别
request.getParameter() 和request.getAttribute() 区别getParameter 是用来接受用post个get方法传递过来的参数的.getAttribute 必须先setAttribute.(1)request.getParameter() 取得是通过容器的...
分类:其他好文   时间:2015-10-26 13:44:31    阅读次数:139
045魔法方法:属性访问
属性访问:__getattr__(self,name) 定义当用户试图获取一个不存在的属性时的行为__getattribute__(self,name) 定义当该类的属性被访问时的行为__setattr__(self,name,value) 定义当用一个属性被设置时的行为__delattr__(se...
分类:其他好文   时间:2015-10-21 08:07:05    阅读次数:164
ServletContext保存访问量
ServletContext application = this.getServletContext(); Integer count = (Integer)application.getAttribute("count"); if(count == null) { count = 1; } el...
分类:其他好文   时间:2015-10-13 21:02:11    阅读次数:141
jquery $(this).attr $(this).val方法使用介绍
$(this).attr(key); 获取节点属性名的值,相当于getAttribute(key)方法 $(this).attr(key, value); 设置节点属性的值,相当于setAttribute(key,value)方法 eg: var diywidgetid = $('#w_1').at...
分类:Web程序   时间:2015-10-10 17:02:06    阅读次数:141
request属性 request.getAttribute()
一、request.getParameter() 和request.getAttribute() 区别(1)request.getParameter()取得是通过容器的实现来取得通过类似post,get等方式传入的数据,request.setAttribute()和getAttribute()只是在...
分类:其他好文   时间:2015-10-10 11:58:03    阅读次数:162
request.getAttribute( "result");和request.setAttribute("result",username);
request.setAttribute("result",username);在request对象中加入名为result的属性并附值为username,因为request对象是可以更改的,你可以在同一个请求中象这样访问这个属性。虽然类似session,但与session是有所区别的,request...
分类:其他好文   时间:2015-09-30 17:50:10    阅读次数:109
HttpSession的线程安全问题及注意事项
摘自http://blog.csdn.net/java2000_net/article/details/2922357HttpSessionsession=request.getSession();Listlist=session.getAttribute("productCart");myServ...
分类:编程语言   时间:2015-09-29 18:33:58    阅读次数:211
登录模块需要用到session留底
1 8 9 10 Object sessionValues=sessions.getAttribute("uid");11 12 怎么设置页面有session才可以进入,这是个问题
分类:其他好文   时间:2015-09-24 19:16:45    阅读次数:115
java json 省市级联
// 获取国家省市区信息$(document).ready(function(){//从程序获取json格式的数据var info = $request.getAttribute("manualOrderAreaInfo");var provinceInfo = $("#provinceId");v...
分类:编程语言   时间:2015-09-23 13:20:46    阅读次数:145
EL表达式复习
EL表达式格式:${objName.attribute}从pageContext、request、session、application中依次查找绑定名为“objName”的对象,找到后调用“getAttribute”方法,将返回值输出,在取值过程中不关心数据的类型。。
分类:其他好文   时间:2015-09-22 14:30:14    阅读次数:126
645条   上一页 1 ... 44 45 46 47 48 ... 65 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!