You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ian Meikle <im...@csc.com> on 2008/04/01 10:52:16 UTC
Problem with URL tag
Hi,
I have downloaded what is discribed as the latest "best available" release
of STRUTS 2.0.11.1 (http://struts.apache.org/downloads.html)
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 ?
What can I use as a workaround ?
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 ?
Regards
Ian
CSC Solutions Norge AS
Registered Office: SandsliƄsen 57, 5254 Sandsli, Norway
Registered in Norway No: 958 958 455
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Re: Problem with URL tag
Posted by Dave Newton <ne...@yahoo.com>.
(Quick followup.)
The wiki is a bit tricky when it comes to supplying version-specific
information when the information is added before the new version is released.
Unless editors specifically add version numbers to documentation text there's
no way to know what version something applies to.
This is one of those cases, where "id" was used, but "var" will be used in
S2.1 (AFAIK) and "id" will (hopefully) no longer be allowed. I'd have to
verify that before I changed the docs to reflect this, though.
Dave
--- Dave Newton <ne...@yahoo.com> wrote:
> --- Ian Meikle <im...@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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Problem with URL tag
Posted by Dave Newton <ne...@yahoo.com>.
--- Ian Meikle <im...@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