javax.servlet.http.HttpSession翻译
2008-02-23 09:24:56来源:互联网 阅读 ()
- Binds an object to this session, using the name specified. If an object of the same name is already bound to the session, the object is replaced. 使用指定名称,向session绑定一个对象。如果一个相同名称的对象已绑定给session,原对象被替代。
After this method executes, and if the new object implements
HttpSessionBindingListener
, the container callsHttpSessionBindingListener.valueBound
. The container then notifies anyHttpSessionAttributeListener
s in the web application. 在方法执行之后,如果对象实现了HttpSessionBindingListener,那么容器调用HttpSessionBindingListener.valueBound。 容器通知web应用中的所有HttpSessionAttributeListener。If an object was already bound to this session of this name that implements
HttpSessionBindingListener
, itsHttpSessionBindingListener.valueUnbound
method is called. 如果已用该名称绑定给session的原对象实现HttpSessionBindingListener,那么调用HttpSessionBindingListener.valueUnbound方法。If the value passed in is null, this has the same effect as calling
removeAttribute()
. 如果值传递为null,那么效果与调用removeAttribute()相同。
- Parameters:
name
- the name to which the object is bound; cannot be null 对象要绑定的名称,不能为nullvalue
- the object to be bound 要绑定的对象- Throws:
IllegalStateException
- if this method is called on an invalidated session 如果方法调用是基于一个无效的会话则抛出
Object value)- Deprecated. As of Version 2.2, this method is replaced by
setAttribute(java.lang.String, java.lang.Object)
从版本2.2以来,该方法被setAttribute(java.lang.String, java.lang.Object)所替代。 - Parameters:
name
- the name to which the object is bound; cannot be null 对象要绑定的名称,不能为nullvalue
- the object to be bound; cannot be null 要绑定的对象,不能为null- Throws:
IllegalStateException
- if this method is called on an invalidated session 如果方法调用是基于一个无效的会话则抛出
<!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD Object value)- Deprecated. As of Version 2.2, this method is replaced by
setAttribute(java.lang.String, java.lang.Object)
从版本2.2以来,该方法被setAttribute(java.lang.String, java.lang.Object)所替代。 - Parameters:
name
- the name to which the object is bound; cannot be null 对象要绑定的名称,不能为nullvalue
- the object to be bound; cannot be null 要绑定的对象,不能为null- Throws:
IllegalStateException
- if this method is called on an invalidated session 如果方法调用是基于一个无效的会话则抛出
<!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD 下一篇: MIDP2.0仕样探索之五标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:scjp考题1(详尽答案)
下一篇:Java 基本语法——数据类型
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash