When you use subdirectories, the directory structure becomes part of the name of the page, so you need to use it in any references, separating with forward slashes. In your case, your PageLink should look like: <a jwcid="@PageLink" page="customer/SomePage">Link to self</a> jeff
________________________________ From: news on behalf of Raul Raja Martinez Sent: Sat 2/4/2006 12:29 AM To: [email protected] Subject: Re: How to setup Tapestry 4 Friendly URLs and J2EE declarative security same problem here best regards. Raul Raja. gvp wrote: > I have 3 security zones: public, customer (/customer/*) and admin > (/admin/*) and want to apply friendly urls for them. > > I did some settings (just for page service): > hivemind: <page-service-encoder id="page" extension="tap" service="page"/> > web.xml: <servlet-mapping><servlet-name>pxt</servlet-name> > <url-pattern>*.tap</url-pattern></servlet-mapping> > In WEB-INF I have subdirectories: customer and admin > > When I refer page /customer/SomePage.tap - it returns ok. But when I > place @PageLink on it > <a jwcid="@PageLink" page="SamePage">Link to self</a> it is being > generated into url: /SomePage.tap without any /customer/ prefix. > > > What should I do to make all things working: friendly URL + > PageLink(ExternalLink, ServiceLink etc) generation. > > --------------------------------------------------------------------- > 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]
