Just what I needed - thanks!

--john


----- Original Message -----
From: Dave Newton <[EMAIL PROTECTED]>
Date: Thursday, July 24, 2008 5:31 pm
Subject: Re: [S2] url tag to construct href in different namespace

> 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>

> > 
> > >       <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"/>
> > 
> > 
> > 
> > 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]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to