struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Struts Two <struts...@yahoo.ca>
Subject s:url does not render url properly
Date Mon, 02 Jun 2008 15:41:46 GMT
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,


      __________________________________________________________________
Connect with friends from any web browser - no download required. Try the new Yahoo! Canada
Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message