javax.servlet.http.HttpSession翻译

2008-02-23 09:24:56来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

<!-- 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)
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 calls HttpSessionBindingListener.valueBound. The container then notifies any HttpSessionAttributeListeners in the web application. 在方法执行之后,如果对象实现了HttpSessionBindingListener,那么容器调用HttpSessionBindingListener.valueBound。 容器通知web应用中的所有HttpSessionAttributeListener。

If an object was already bound to this session of this name that implements HttpSessionBindingListener, its HttpSessionBindingListener.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 对象要绑定的名称,不能为null
value - 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 对象要绑定的名称,不能为null
value - 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 对象要绑定的名称,不能为null
value - 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 基本语法——数据类型