You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Harland <dh...@ufi.com> on 2007/05/01 13:51:14 UTC
s:url bug
Hi,
I think I have found a bug with the url tag. If I have a url with 2
params
<s:url id="msgUrl" action="test" method="delete">
<s:param name="lastPage" value="%{'home'}" />
<s:param name="messageId" value="%{test.messageId}" />
</s:url>
I get
%{msgUrl} gives
/test/test!delete.action?lastPage=home&amp;messageId=3851761
Am I doing something wrong?
______________________________________________________________________
Ufi Limited
Registered in England No. 3980770
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
UFI Charitable Trust
Registered in England No. 3658378
Registered Charity No. 1081028
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
Re: s:url bug
Posted by MK Tan <mk...@gmail.com>.
Hi,
>From the constructed url I assume you refer the url like this:
<a href="<s:property value="%{msgUrl}"/>">some message</a>
Try using <s:a/>, like this
<s:a href="%{#msgUrl}">some text again</s:a>
AFAIK, <s:a /> will give you the correct url.
HTH,
MK Tan
On 5/1/07, David Harland <dh...@ufi.com> wrote:
>
> Hi,
>
> I think I have found a bug with the url tag. If I have a url with 2
> params
>
> <s:url id="msgUrl" action="test" method="delete">
> <s:param name="lastPage" value="%{'home'}" />
> <s:param name="messageId" value="%{test.messageId}" />
> </s:url>
>
> I get
>
> %{msgUrl} gives
>
> /test/test!delete.action?lastPage=home&amp;messageId=3851761
>
> Am I doing something wrong?
>
>
> ______________________________________________________________________
> Ufi Limited
> Registered in England No. 3980770
> Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> learndirect Solutions Ltd
> Registered in England No. 5081669
> Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> UFI Charitable Trust
> Registered in England No. 3658378
> Registered Charity No. 1081028
> Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
>
> This email has been scanned by the MessageLabs Email Security System.
>
> ______________________________________________________________________
Re: s:url bug
Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,
I think there is a jira ticket for this, look at these links. it may help
you.
https://issues.apache.org/struts/browse/WW-1624
http://forums.opensymphony.com/thread.jspa?threadID=46866&tstart=0
Thanks,
Nuwan.
----- Original Message -----
From: "David Harland" <dh...@ufi.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, May 01, 2007 11:51 AM
Subject: s:url bug
Hi,
I think I have found a bug with the url tag. If I have a url with 2
params
<s:url id="msgUrl" action="test" method="delete">
<s:param name="lastPage" value="%{'home'}" />
<s:param name="messageId" value="%{test.messageId}" />
</s:url>
I get
%{msgUrl} gives
/test/test!delete.action?lastPage=home&amp;messageId=3851761
Am I doing something wrong?
______________________________________________________________________
Ufi Limited
Registered in England No. 3980770
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
learndirect Solutions Ltd
Registered in England No. 5081669
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
UFI Charitable Trust
Registered in England No. 3658378
Registered Charity No. 1081028
Registered Office: Dearing House, 1 Young Street, Sheffield, S1 4UP
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org