You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by blueboy6 <bl...@gmail.com> on 2009/12/10 17:53:22 UTC
[T5] Permalinks
Hello everyone,
I have interesting question.
Is it posible to create permalinks for my pages like:
www.test.com/TY45-234
I know that there is activation context but I need to do this in this
shorter way.
Or at least to take this permalink and to send it to other page as
activation context.
Impatiently waiting for reply. :)
Bojan Cincur
--
View this message in context: http://old.nabble.com/-T5--Permalinks-tp26730696p26730696.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: [T5] Permalinks
Posted by blueboy6 <bl...@gmail.com>.
Hi Jakub,
I'm not sure that I got what you are suggesting to me?
Can you explain it a little bit to me.
Bojan
Jakub Vlasak wrote:
>
> Or you can do it from the other side. If the string isn't contained in the
> array of your pages, then rewrite the url.
>
> On Thu, Dec 10, 2009 at 7:49 PM, blueboy6 <bl...@gmail.com> wrote:
>
>>
>> TNX Thiago,
>>
>> this really helped me a lot :)
>>
>> PS
>> isn't url rewrite complicated to do when I have lots of diferent parts...
>> (TWR-234, A34-TDS and so on) because I would need to create rule for all
>> of
>> them, I just read all documentation and didn't find anything similar.
>>
>> :)
>>
>>
>>
>> Thiago H. de Paula Figueiredo wrote:
>> >
>> > Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 <bl...@gmail.com>
>> > escreveu:
>> >
>> >> Hello everyone,
>> >
>> > Hi!
>> >
>> >> I have interesting question.
>> >> Is it posible to create permalinks for my pages like:
>> >> www.test.com/TY45-234
>> >> I know that there is activation context but I need to do this in this
>> >> shorter way.
>> >
>> > Two suggestions:
>> >
>> > 1) Have an Index page and use its activation context to redirect to the
>> > proper page
>> > 2) Implement a URL rewriting rule the verifies the URL and changes it
>> to
>> > /view/TY45-234, for example. This approach has the advantage of not
>> using
>> > redirects.
>> >
>> > --
>> > Thiago H. de Paula Figueiredo
>> > Independent Java, Apache Tapestry 5 and Hibernate consultant,
>> developer,
>> > and instructor
>> > Owner, software architect and developer, Ars Machina Tecnologia da
>> > Informação Ltda.
>> > http://www.arsmachina.com.br
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/-T5--Permalinks-tp26730696p26732522.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
>>
>>
>
>
--
View this message in context: http://old.nabble.com/-T5--Permalinks-tp26730696p26749167.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: [T5] Permalinks
Posted by Jakub Vlasak <jw...@gmail.com>.
Or you can do it from the other side. If the string isn't contained in the
array of your pages, then rewrite the url.
On Thu, Dec 10, 2009 at 7:49 PM, blueboy6 <bl...@gmail.com> wrote:
>
> TNX Thiago,
>
> this really helped me a lot :)
>
> PS
> isn't url rewrite complicated to do when I have lots of diferent parts...
> (TWR-234, A34-TDS and so on) because I would need to create rule for all of
> them, I just read all documentation and didn't find anything similar.
>
> :)
>
>
>
> Thiago H. de Paula Figueiredo wrote:
> >
> > Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 <bl...@gmail.com>
> > escreveu:
> >
> >> Hello everyone,
> >
> > Hi!
> >
> >> I have interesting question.
> >> Is it posible to create permalinks for my pages like:
> >> www.test.com/TY45-234
> >> I know that there is activation context but I need to do this in this
> >> shorter way.
> >
> > Two suggestions:
> >
> > 1) Have an Index page and use its activation context to redirect to the
> > proper page
> > 2) Implement a URL rewriting rule the verifies the URL and changes it to
> > /view/TY45-234, for example. This approach has the advantage of not using
> > redirects.
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> > and instructor
> > Owner, software architect and developer, Ars Machina Tecnologia da
> > Informação Ltda.
> > http://www.arsmachina.com.br
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/-T5--Permalinks-tp26730696p26732522.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: [T5] Permalinks
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 10 Dec 2009 16:49:25 -0200, blueboy6 <bl...@gmail.com> escreveu:
> TNX Thiago,
> this really helped me a lot :)
You're welcome!
> PS isn't url rewrite complicated to do when I have lots of diferent
> parts...
> (TWR-234, A34-TDS and so on) because I would need to create rule for all
> of them, I just read all documentation and didn't find anything similar.
You don't need to create a rule for each of them, as long as you have a
defined mapping between permalink and real URL.
You can think of URL rewriting as being string manipulation. The
documentation just shows simple examples for easy understanding.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T5] Permalinks
Posted by blueboy6 <bl...@gmail.com>.
TNX Thiago,
this really helped me a lot :)
PS
isn't url rewrite complicated to do when I have lots of diferent parts...
(TWR-234, A34-TDS and so on) because I would need to create rule for all of
them, I just read all documentation and didn't find anything similar.
:)
Thiago H. de Paula Figueiredo wrote:
>
> Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 <bl...@gmail.com>
> escreveu:
>
>> Hello everyone,
>
> Hi!
>
>> I have interesting question.
>> Is it posible to create permalinks for my pages like:
>> www.test.com/TY45-234
>> I know that there is activation context but I need to do this in this
>> shorter way.
>
> Two suggestions:
>
> 1) Have an Index page and use its activation context to redirect to the
> proper page
> 2) Implement a URL rewriting rule the verifies the URL and changes it to
> /view/TY45-234, for example. This approach has the advantage of not using
> redirects.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/-T5--Permalinks-tp26730696p26732522.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: [T5] Permalinks
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 10 Dec 2009 14:53:22 -0200, blueboy6 <bl...@gmail.com> escreveu:
> Hello everyone,
Hi!
> I have interesting question.
> Is it posible to create permalinks for my pages like:
> www.test.com/TY45-234
> I know that there is activation context but I need to do this in this
> shorter way.
Two suggestions:
1) Have an Index page and use its activation context to redirect to the
proper page
2) Implement a URL rewriting rule the verifies the URL and changes it to
/view/TY45-234, for example. This approach has the advantage of not using
redirects.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org