在标签那个类中有 String xs这个属性
为什么我在编译的时候报下面这个错误,而且,我在类中是定义了关于xs这个属性的set方法的Translation of /WEB-INF/jsp/common/changeObject.jsp failed: (line 5): Error in using tag library uri='/WEB-INF/hualong-tag.tld' prefix='hualong': The Tag class 'com.hualong.treeview.TreeControlTag' has no setter method corresponding to TLD declared attribute 'xs', (JSP 1.1 spec, 5.4.1)
为什么我在编译的时候报下面这个错误,而且,我在类中是定义了关于xs这个属性的set方法的Translation of /WEB-INF/jsp/common/changeObject.jsp failed: (line 5): Error in using tag library uri='/WEB-INF/hualong-tag.tld' prefix='hualong': The Tag class 'com.hualong.treeview.TreeControlTag' has no setter method corresponding to TLD declared attribute 'xs', (JSP 1.1 spec, 5.4.1)
<name>tree</name>
<tag-class>com.hualong.treeview.TreeControlTag</tag-class>
<body-content>empty</body-content>
<description>
Render a "tree" control, based on the current state of a data object
of type org.apache.webapp.admin.TreeControl, which is identified
by the name specified in the "tree" attribute, in the JSP scope
specified by the "scope" attribute.
</description>
<attribute>
<name>xs</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Hyperlink to which expand/contract actions should be sent,
with a string "${node}" ing where the node name of the
affected node should be included (which will usually be as
the value of a request parameter).
</description>
</attribute>
<attribute>
<name>action</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Hyperlink to which expand/contract actions should be sent,
with a string "${node}" ing where the node name of the
affected node should be included (which will usually be as
the value of a request parameter).
</description>
</attribute>
<attribute>
<name>images</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Name of a directory containing the images for our icons,
relative to the page including this tag. If not specified,
defaults to "images".
</description>
</attribute>
<attribute>
<name>scope</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
The JSP scope within which the "tree" attribute is to be found
(page, request, session, or application). If not specified, the
"tree" attribute will be searched for in any scope.
</description>
</attribute>
<attribute>
<name>style</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
The CSS style class to be applied to the entire rendered output
of the tree control. If not specified, no overall style class
is applied.
</description>
</attribute>
<attribute>
<name>styleSelected</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
The CSS style class to be applied to the text of any node that
is currently selected. If not specified, no style class will be
applied to the text of the selected node.
</description>
</attribute>
<attribute>
<name>styleUnselected</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
The CSS style class to be applied to the text of any node that
is *not* currently selected. If not specified, no style class will
be applied to the text of non-selected nodes.
</description>
</attribute>
<attribute>
<name>tree</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description>
Name of the attribute (in the scope specified by the "scope"
attribute, if any) under which an object of type
org.apache.webapp.admin.TreeControl is stored. This object
represents the entire current state of the tree, including
a representation of the hierarchical representation of the
nodes, plus the current expanded/ or contracted state of
non-leaf nodes.
</description>
</attribute>
</tag>
public void setTree(String tree) {
this.tree = tree;
}
public void setXs(String xs) {
this.xs = xs;
}
如果你想要看例子请到我的blog(http://blog.csdn.net/cao_david/)上去看“jsp使用自定义标签taglib分页系列”所以代码我都公开了
public void getXs(String xs){
return this.xs;
}
public void setXs(String xs) {
this.xs = xs;
}