struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John.C.Cartwri...@noaa.gov
Subject Re: [S2] url tag to construct href in different namespace
Date Sat, 26 Jul 2008 00:57:44 GMT
Just what I needed - thanks!

--john


----- Original Message -----
From: Dave Newton <newton.dave@yahoo.com>
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 <John.C.Cartwright@noaa.gov> 
> wrote:
> > From: John Cartwright <John.C.Cartwright@noaa.gov>
> > 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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> 
> --------------------------------------------------------------------
> -
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message