You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tsun Bon Yu <ts...@gmail.com> on 2011/04/09 11:22:31 UTC
URL mapping
Dear Tapestry users,
I am trying to use Tapestry 5.2 to create a simple project.
My question is how do I achieve the URL mapping(customize URL) same as
Spring MVG like
<bean id="handlerMapping"
class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="alwaysUseFullPath" value="true"/>
<property name="mappings">
<props>
<prop key="/mypage.json">myPageController</prop>
Thanks
David
Re: URL mapping
Posted by Taha Hafeez <ta...@gmail.com>.
Did you take a look at
http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
<http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/>
regards
Taha
On Sat, Apr 9, 2011 at 2:52 PM, Tsun Bon Yu <ts...@gmail.com> wrote:
> Dear Tapestry users,
> I am trying to use Tapestry 5.2 to create a simple project.
> My question is how do I achieve the URL mapping(customize URL) same as
> Spring MVG like
>
> <bean id="handlerMapping"
> class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
>
> <property name="alwaysUseFullPath" value="true"/>
> <property name="mappings">
> <props>
> <prop key="/mypage.json">myPageController</prop>
>
>
>
> Thanks
> David
>