Attribute var not defined in TLD for tag s:text
-----------------------------------------------
Key: WW-2714
URL: https://issues.apache.org/struts/browse/WW-2714
Project: Struts 2
Issue Type: Bug
Components: Plugin - Tags
Affects Versions: 2.0.11.2
Reporter: Wolfgang Schröder
When using the s:text text like this:
<s:text name="myKey" var="myVar"/>
I get the Exception "Attribute var invalid for tag text according to TLD"
I checked the TLD and found this:
<tag>
<name>text</name>
<tag-class>org.apache.struts2.views.jsp.TextTag</tag-class>
<body-content>JSP</body-content>
<description><![CDATA[Render a I18n text message]]></description>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[id for referencing element. For UI and form tags it
will be used as HTML id attribute]]></description>
</attribute>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<description><![CDATA[ Name of resource property to fetch]]></description>
</attribute>
</tag>
Only defined attribute are "id" and "name". Attribute "var" seems to be missing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.