You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Garner Shawn <sh...@gmail.com> on 2006/09/22 02:07:05 UTC

[Struts 2][Sitemesh] s:url in decorator file and html file

I have a subdirectory with an html file when I click on a link it
takes me to the html file.
A decorator with navigation links decorates the html page.

The navigation links are relative to the current directory instead of
the context path.
I didn't think it was suppose to du this with <s:url action=""/>

It renders the following <a class="sidelink" href="<s:url
action='products' includeParams='none'/>">Products</a> as

<a class="sidelink"
href="/agejsofts2/product/WinemakerTracker/docs/products.action">Products</a>

when I want:

<a class="sidelink" href="/agejsofts2/products.action">Products</a>

What am I doing wrong?

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


RE: [Struts 2][Sitemesh] s:url in decorator file and html file

Posted by David Friedman <hu...@ix.netcom.com>.
You keep emailing copies to the SiteMesh list
as well as Struts.  Does this mean when you
temporarily remove SiteMesh decorating that
you see the proper path and when SiteMesh
is enabled you see the incorrect path?

Regards,
David

-----Original Message-----
From: Garner Shawn [mailto:shawndgarner@gmail.com]
Sent: Thursday, September 21, 2006 8:07 PM
To: user@struts.apache.org; users@sitemesh.dev.java.net
Subject: [Struts 2][Sitemesh] s:url in decorator file and html file


I have a subdirectory with an html file when I click on a link it
takes me to the html file.
A decorator with navigation links decorates the html page.

The navigation links are relative to the current directory instead of
the context path.
I didn't think it was suppose to du this with <s:url action=""/>

It renders the following <a class="sidelink" href="<s:url
action='products' includeParams='none'/>">Products</a> as

<a class="sidelink"
href="/agejsofts2/product/WinemakerTracker/docs/products.action">Products</a
>

when I want:

<a class="sidelink" href="/agejsofts2/products.action">Products</a>

What am I doing wrong?


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