Namespaces typically begin with a "/"; try that. Dave
--- On Thu, 7/24/08, John Cartwright <[EMAIL PROTECTED]> wrote: > From: John Cartwright <[EMAIL PROTECTED]> > Subject: [S2] url tag to construct href in different namespace > To: "Struts Users Mailing List" <user@struts.apache.org> > Date: Thursday, July 24, 2008, 7:23 PM > Hello All, > > I'm trying to use the url tag to construct a href which > goes to a > different namespace. It seems that all of the constructed > URLs have the > same base as the original page. > > For example, given a page reached at: > http://lynx.ngdc.noaa.gov:8080/tideloader/message/View.action > > The markup listed below produces this URL: > http://lynx.ngdc.noaa.gov:8080/tideloader/message/observation/View.action?localId=amkaC&operatorId=1 > > when what I actually want is this URL: > http://lynx.ngdc.noaa.gov:8080/tideloader/observation/View.action?localId=amkaC&operatorId=1 > > > <a href=" > <s:url action="View" > forceAddSchemeHostAndPort="true" > includeParams="none" > includeContext="true" > namespace="observation" > scheme="http"> > <s:param name="localId" > value="key" /> > <s:param name="operatorId" > value="message.operatorId" /> > </s:url> > "> > <s:property value="key"/> > </a> > > > Can someone please show me the correct way to do this? > > Thanks! > > --john > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]