You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by gvp <bl...@gmail.com> on 2006/02/01 13:31:53 UTC

How to setup Tapestry 4 Friendly URLs and J2EE declarative security

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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: How to setup Tapestry 4 Friendly URLs and J2EE declarative security

Posted by Raul Raja Martinez <do...@estudiowebs.com>.
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: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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