struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Problem with URL tag
Date Tue, 01 Apr 2008 09:10:29 GMT
--- Ian Meikle <imeikle@csc.com> wrote:
> I am following the tutorial "Using tags" where the example uses a URL tag 
> with the "var" attribute.
>         <s:url var="url" action="Welcome">
> 
> However this crashes since the TLD in the struts2-core-2.0.11.1.jar does 
> not define the "var" attribute.
> It is however discribed in the documentation.
> 
> Is this a bug ?
> If so when will it be fixed ?

S2.1.

> What can I use as a workaround ?

In S2.0 use "id".

> I see in some of the example applications "id" is used, and in the 
> documentation it states:
>         id      Deprecated. Use 'var' instead
> 
> Is it safe to use id instead ? What are the differences between the two ?

One's shorter than the other.

Dave


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


Mime
View raw message