struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emi Lu <em...@encs.concordia.ca>
Subject Re: Attribute var invalid for tag bean according to TLD
Date Tue, 11 Sep 2007 13:51:54 GMT
Thank you Musachy! That's why.

But I did not see where I can download struts2.1?

http://struts.apache.org/download.cgi

 From this page, I see the highest version is 2.0.9.

Can you tell me where I can download 2.1 version please?

Thanks a lot!



Musachy Barroso wrote:
> There is no "var" attribute on 2.0.9 as it is a new in 2.1. Right now
> the online documentation has a mix of 2.1 and 2.0. Try "name" instead.
> (The documentation for 2.0.9 can be downloaded with the jars)
> 
> musachy
> 
> On 9/10/07, Emi Lu <emilu@encs.concordia.ca> wrote:
>> Hello,
>>
>> Musachy Barroso wrote:
>>> what version did you download?
>>>
>> I downloaded "Example Applications- struts-2.0.9-apps.zip (22mb)". I
>> extracted the lib, and followed the online tutorial page about beans.
>>
>> I opened struts2-core-2.09.jar, and in "META-INF/struts-tags.tld" file:
>>
>>    <tag>
>>      <name>bean</name>
>>      <tag-class>org.apache.struts2.views.jsp.BeanTag</tag-class>
>>      <body-content>JSP</body-content>
>>      <description><![CDATA[Instantiate a JavaBean and place it in the
>> context]]></description>
>>      <attribute>
>>        <name>id</name>
>>        <required>false</required>
>>        <rtexprvalue>true</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>true</rtexprvalue>
>>        <description><![CDATA[The class name of the bean to be
>> instantiated (must respect JavaBean specification)]]></description>
>>      </attribute>
>>    </tag>
>>
>>
>> I did not see "<name>var</name>" section? Shouldn't the attribute in
>> this file?
>>
>> If not, would you tell me which jar file I should import into my project?
>>
>> Thanks a lot!
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message