|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.servlet.jsp.tagext Interface DynamicAttributes
public interface DynamicAttributes
For a tag to declare that it accepts dynamic attributes, it must implement
this interface. The entry for the tag in the Tag Library Descriptor must
also be configured to indicate dynamic attributes are accepted.
For any attribute that is not declared in the Tag Library Descriptor for
this tag, instead of getting an error at translation time, the
setDynamicAttribute()
method is called, with the name and
value of the attribute. It is the responsibility of the tag to
remember the names and values of the dynamic attributes.
- 从以下版本开始:
- JSP 2.0
方法摘要 | |
---|---|
void |
setDynamicAttribute(String uri,
String localName,
Object value)
Called when a tag declared to accept dynamic attributes is passed an attribute that is not declared in the Tag Library Descriptor. |
方法详细信息 |
---|
setDynamicAttribute
void setDynamicAttribute(String uri, String localName, Object value) throws JspException
- Called when a tag declared to accept dynamic attributes is passed
an attribute that is not declared in the Tag Library Descriptor.
- 参数:
uri
- the namespace of the attribute, or null if in the default namespace.localName
- the name of the attribute being set.value
- the value of the attribute- 抛出异常:
JspException
- if the tag handler wishes to signal that it does not accept the given attribute. The container must not call doStartTag() or doTag() for this tag.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.