You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by jellevangompel <je...@gmail.com> on 2013/02/25 13:59:25 UTC
Putting the context first in the URL path
Hi all,
I wanna know if it is possible to put the context of a page first in the
path of a URL.
I am currently implementing a wizard built with separate pages that all need
to be initialised with a context.
This will result in URLs like:
www.myapp.com/stepone/contextA
www.myapp.com/steptwo/contextA
www.myapp.com/stepthree/contextA
...
However, I would like to have my URLs of the form:
www.myapp.com/contextA/stepone
www.myapp.com/contextA/steptwo
www.myapp.com/contextA/stepthree
...
Is there a way I can realise this with Tapestry?
Also, in a multi-language application I would like to have the context after
the language parameter, eg.:
www.myapp.com/en/contextA/stepone
www.myapp.com/nl/contextA/stepone
www.myapp.com/fr/contextA/stepone
...
Regards,
Jelle
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Putting-the-context-first-in-the-URL-path-tp5720213.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Putting the context first in the URL path
Posted by Taha Siddiqi <ta...@gmail.com>.
Hi
You can do it using Tapestry's URL Rewriting APIs
http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
http://tapestry.apache.org/url-rewriting.html
regards
Taha
On Feb 25, 2013, at 6:29 PM, jellevangompel wrote:
> Hi all,
>
> I wanna know if it is possible to put the context of a page first in the
> path of a URL.
> I am currently implementing a wizard built with separate pages that all need
> to be initialised with a context.
>
> This will result in URLs like:
>
> www.myapp.com/stepone/contextA
> www.myapp.com/steptwo/contextA
> www.myapp.com/stepthree/contextA
> ...
>
> However, I would like to have my URLs of the form:
>
> www.myapp.com/contextA/stepone
> www.myapp.com/contextA/steptwo
> www.myapp.com/contextA/stepthree
> ...
>
> Is there a way I can realise this with Tapestry?
>
> Also, in a multi-language application I would like to have the context after
> the language parameter, eg.:
>
> www.myapp.com/en/contextA/stepone
> www.myapp.com/nl/contextA/stepone
> www.myapp.com/fr/contextA/stepone
> ...
>
>
> Regards,
> Jelle
>
>
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Putting-the-context-first-in-the-URL-path-tp5720213.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>