hi

try it

<s:url id="viewURL" namespace="/account" action="view" />
<s:a href=%{viewURL}> View Your Account </s:a>

 My english is not good
 hope this can help you

gordian

On Wed, Apr 9, 2008 at 6:00 PM, ancatdubher <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I use the Struts 2   tag to generate my URLs.
> For example to generate the URL  /account/view.action,  I do:
>
> <s:url id="viewURL" namespace="account" action="view" />
> <s:a href=%{viewURL}> View Your Account </s:a>
>
> But each click on this URL inserts an extra "namespace" prefix into the
> generated URL.
> I mean, after clicking 5 times on the "View Your Account" link, my address
> bar reads:
>
>
> http://localhost/mysite/account/account/account/account/account/view.action
>
> This still takes me to the correct page, but...
>
> What am I missing?
>
> Thanks,
> Ancat.
> --
> View this message in context:
> http://www.nabble.com/Struts-2-%3Cs%3Aa%3E-URL-tag-problems-tp16583543p16583543.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to