struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Struts Two <struts...@yahoo.ca>
Subject Re: s:url does not render url properly
Date Mon, 02 Jun 2008 16:00:49 GMT
I have put namespace="/user" in the url, but it does not work. Here is what I have:
<s:url action="goToRegistration" namespace="/user" id="registerUrl">
    <s:param name="user.cnum" value="<s:property vaue='cnum'/>"/>
</s:url>
 <a href="<s:property value='#registerUrl'/>">Register</a>

but still when I click on the link, the namespace user is appended to the ticket namespace
that is alreay in the url.

----- Original Message ----
From: Musachy Barroso <musachy@gmail.com>
To: Struts Users Mailing List <user@struts.apache.org>
Sent: Monday, June 2, 2008 11:47:48 AM
Subject: Re: s:url does not render url properly

the use namespace="/user" in the url tag

On Mon, Jun 2, 2008 at 11:41 AM, 
>  I have the following code snippet in my jsp:
>      <s:url action="goToRegistration" namespace="user" id="registerUrl">
>        <s:param name="user.cnum" value="<s:property vaue='cnum'/>"/>
>      </s:url>
>      <a href="<s:property value='#registerUrl'/>">Register</a>
> The page url were the code is rendered is ....localhost:9445/ccol/ticket/newTicketOwnerList.action
where "ccol" is the context root. When I click on the link the page goes to the following
url  ...localhost:9445/ccol/ticket/user/goToRegistration.action which is wrong. I want the
url go to the following url:
> ...localhost:9445/ccol/user/goToRegistration.action, that is to say I want to have user
namespace and action appended to the context rool. Any ideas what I am doing wrong.
> thanx,



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message