You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bo Gao <el...@gmail.com> on 2011/07/18 11:52:50 UTC

how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

I want to redirect some url to another url, the url is not a tapestry page.
but decodePageRenderRequest returns a PageRenderRequestParameters
How can I do this.

--
Bo Gao
elivoa@gmail.com





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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Bo Gao <el...@gmail.com>.
> :) Your subject is "how to redirect..."

Sorry for my mistake.

How can I use http://download.oracle.com/javaee/6/api/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)
in a tapestry page?

On Jul 19, 2011, at 12:44 PM, Josh Canfield wrote:

>> It's a good way to do the redirect.
>> But I want the url remain /download, so it's a url rewrite, not redirect.
> 
> :) Your subject is "how to redirect..."
> 
> With tapestry rewriting you can change an incoming URI so that it
> matches a tapestry page or component event and you can rewrite
> outgoing links so that you have a different URI structure. You don't
> see how you could use rewriting to move out of a tapestry into a
> struts app.
> 
> If you have managed to get both tapestry and struts running from
> within the same WAR file then you might be able to use
> http://download.oracle.com/javaee/6/api/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)
> 
> But this isn't something that I've ever considered before this moment.
> 
> Josh
> 
> 
> On Mon, Jul 18, 2011 at 9:00 PM, Bo Gao <el...@gmail.com> wrote:
>>> I'm not sure why you'd want to do this from the link transformer. Can
>>> you explain?
>> 
>> Now I have to Integrate struts and tapestry, let them work together.
>> There is an old rewrite rule, /download to /page.do?p=download
>> Now I use link transformer to do the rewrite.
>> 
>>> My first choice would be to let it reach a page and have that page
>>> class do the redirect from an onActivate handler.
>> 
>> 
>> It's a good way to do the redirect.
>> But I want the url remain /download, so it's a url rewrite, not redirect.
>> 
>> Thanks
>> 
>> 
>> 
>> On Jul 19, 2011, at 12:46 AM, Josh Canfield wrote:
>> 
>>> I'm not sure why you'd want to do this from the link transformer. Can
>>> you explain?
>>> 
>>> My first choice would be to let it reach a page and have that page
>>> class do the redirect from an onActivate handler.
>>> 
>>> Josh
>>> 
>>> On Mon, Jul 18, 2011 at 7:11 AM, Bo Gao <el...@gmail.com> wrote:
>>>>> Just return a URL instance of a non-tapestry page from the event
>>>>> handler. I think that will do
>>>> 
>>>> I do this in a PageRenderLinkTransformer, the interface is
>>>> public PageRenderRequestParameters decodePageRenderRequest(Request request) ;
>>>> So I must return PageRenderRequestParameters, The first parameter must be a valid page name.
>>>> Is their a way that I can rewrite the url to a common url.
>>>> 
>>>> On Jul 18, 2011, at 6:45 PM, Taha Hafeez wrote:
>>>> 
>>>>> Just return a URL instance of a non-tapestry page from the event
>>>>> handler. I think that will do
>>>>> 
>>>>> 
>>>>> On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao <el...@gmail.com> wrote:
>>>>>> Thank you for your response,
>>>>>> 
>>>>>> For example I want to redirect /download to another url "download.do"
>>>>>> But the download.do is not a tapestry page, it's not handled by tapestry.
>>>>>> How to do this?
>>>>>> 
>>>>>> 
>>>>>> On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote:
>>>>>> 
>>>>>>> Hi
>>>>>>> 
>>>>>>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
>>>>>>> 
>>>>>>> regards
>>>>>>> Taha
>>>>>>> 
>>>>>>> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
>>>>>>>> I want to redirect some url to another url, the url is not a tapestry page.
>>>>>>>> but decodePageRenderRequest returns a PageRenderRequestParameters
>>>>>>>> How can I do this.
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Bo Gao
>>>>>>>> elivoa@gmail.com
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Bo Gao
>>>>>> elivoa@gmail.com
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>> 
>>>>>> 
>>>>> 
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>> 
>>>> 
>>>> --
>>>> Bo Gao
>>>> elivoa@gmail.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>> 
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>> 
>> --
>> Bo Gao
>> elivoa@gmail.com
>> 
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

--
Bo Gao
elivoa@gmail.com





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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Josh Canfield <jo...@gmail.com>.
> It's a good way to do the redirect.
> But I want the url remain /download, so it's a url rewrite, not redirect.

:) Your subject is "how to redirect..."

With tapestry rewriting you can change an incoming URI so that it
matches a tapestry page or component event and you can rewrite
outgoing links so that you have a different URI structure. You don't
see how you could use rewriting to move out of a tapestry into a
struts app.

If you have managed to get both tapestry and struts running from
within the same WAR file then you might be able to use
http://download.oracle.com/javaee/6/api/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)

But this isn't something that I've ever considered before this moment.

Josh


On Mon, Jul 18, 2011 at 9:00 PM, Bo Gao <el...@gmail.com> wrote:
>> I'm not sure why you'd want to do this from the link transformer. Can
>> you explain?
>
> Now I have to Integrate struts and tapestry, let them work together.
> There is an old rewrite rule, /download to /page.do?p=download
> Now I use link transformer to do the rewrite.
>
>> My first choice would be to let it reach a page and have that page
>> class do the redirect from an onActivate handler.
>
>
> It's a good way to do the redirect.
> But I want the url remain /download, so it's a url rewrite, not redirect.
>
> Thanks
>
>
>
> On Jul 19, 2011, at 12:46 AM, Josh Canfield wrote:
>
>> I'm not sure why you'd want to do this from the link transformer. Can
>> you explain?
>>
>> My first choice would be to let it reach a page and have that page
>> class do the redirect from an onActivate handler.
>>
>> Josh
>>
>> On Mon, Jul 18, 2011 at 7:11 AM, Bo Gao <el...@gmail.com> wrote:
>>>> Just return a URL instance of a non-tapestry page from the event
>>>> handler. I think that will do
>>>
>>> I do this in a PageRenderLinkTransformer, the interface is
>>> public PageRenderRequestParameters decodePageRenderRequest(Request request) ;
>>> So I must return PageRenderRequestParameters, The first parameter must be a valid page name.
>>> Is their a way that I can rewrite the url to a common url.
>>>
>>> On Jul 18, 2011, at 6:45 PM, Taha Hafeez wrote:
>>>
>>>> Just return a URL instance of a non-tapestry page from the event
>>>> handler. I think that will do
>>>>
>>>>
>>>> On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao <el...@gmail.com> wrote:
>>>>> Thank you for your response,
>>>>>
>>>>> For example I want to redirect /download to another url "download.do"
>>>>> But the download.do is not a tapestry page, it's not handled by tapestry.
>>>>> How to do this?
>>>>>
>>>>>
>>>>> On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
>>>>>>
>>>>>> regards
>>>>>> Taha
>>>>>>
>>>>>> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
>>>>>>> I want to redirect some url to another url, the url is not a tapestry page.
>>>>>>> but decodePageRenderRequest returns a PageRenderRequestParameters
>>>>>>> How can I do this.
>>>>>>>
>>>>>>> --
>>>>>>> Bo Gao
>>>>>>> elivoa@gmail.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>
>>>>>
>>>>> --
>>>>> Bo Gao
>>>>> elivoa@gmail.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>
>>> --
>>> Bo Gao
>>> elivoa@gmail.com
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> --
> Bo Gao
> elivoa@gmail.com
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Bo Gao <el...@gmail.com>.
> I'm not sure why you'd want to do this from the link transformer. Can
> you explain?

Now I have to Integrate struts and tapestry, let them work together.
There is an old rewrite rule, /download to /page.do?p=download
Now I use link transformer to do the rewrite.

> My first choice would be to let it reach a page and have that page
> class do the redirect from an onActivate handler.


It's a good way to do the redirect.
But I want the url remain /download, so it's a url rewrite, not redirect.

Thanks



On Jul 19, 2011, at 12:46 AM, Josh Canfield wrote:

> I'm not sure why you'd want to do this from the link transformer. Can
> you explain?
> 
> My first choice would be to let it reach a page and have that page
> class do the redirect from an onActivate handler.
> 
> Josh
> 
> On Mon, Jul 18, 2011 at 7:11 AM, Bo Gao <el...@gmail.com> wrote:
>>> Just return a URL instance of a non-tapestry page from the event
>>> handler. I think that will do
>> 
>> I do this in a PageRenderLinkTransformer, the interface is
>> public PageRenderRequestParameters decodePageRenderRequest(Request request) ;
>> So I must return PageRenderRequestParameters, The first parameter must be a valid page name.
>> Is their a way that I can rewrite the url to a common url.
>> 
>> On Jul 18, 2011, at 6:45 PM, Taha Hafeez wrote:
>> 
>>> Just return a URL instance of a non-tapestry page from the event
>>> handler. I think that will do
>>> 
>>> 
>>> On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao <el...@gmail.com> wrote:
>>>> Thank you for your response,
>>>> 
>>>> For example I want to redirect /download to another url "download.do"
>>>> But the download.do is not a tapestry page, it's not handled by tapestry.
>>>> How to do this?
>>>> 
>>>> 
>>>> On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote:
>>>> 
>>>>> Hi
>>>>> 
>>>>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
>>>>> 
>>>>> regards
>>>>> Taha
>>>>> 
>>>>> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
>>>>>> I want to redirect some url to another url, the url is not a tapestry page.
>>>>>> but decodePageRenderRequest returns a PageRenderRequestParameters
>>>>>> How can I do this.
>>>>>> 
>>>>>> --
>>>>>> Bo Gao
>>>>>> elivoa@gmail.com
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>> 
>>>>>> 
>>>>> 
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>> 
>>>> 
>>>> --
>>>> Bo Gao
>>>> elivoa@gmail.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>> 
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>> 
>> --
>> Bo Gao
>> elivoa@gmail.com
>> 
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

--
Bo Gao
elivoa@gmail.com





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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Josh Canfield <jo...@gmail.com>.
I'm not sure why you'd want to do this from the link transformer. Can
you explain?

My first choice would be to let it reach a page and have that page
class do the redirect from an onActivate handler.

Josh

On Mon, Jul 18, 2011 at 7:11 AM, Bo Gao <el...@gmail.com> wrote:
>> Just return a URL instance of a non-tapestry page from the event
>> handler. I think that will do
>
> I do this in a PageRenderLinkTransformer, the interface is
> public PageRenderRequestParameters decodePageRenderRequest(Request request) ;
> So I must return PageRenderRequestParameters, The first parameter must be a valid page name.
> Is their a way that I can rewrite the url to a common url.
>
> On Jul 18, 2011, at 6:45 PM, Taha Hafeez wrote:
>
>> Just return a URL instance of a non-tapestry page from the event
>> handler. I think that will do
>>
>>
>> On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao <el...@gmail.com> wrote:
>>> Thank you for your response,
>>>
>>> For example I want to redirect /download to another url "download.do"
>>> But the download.do is not a tapestry page, it's not handled by tapestry.
>>> How to do this?
>>>
>>>
>>> On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote:
>>>
>>>> Hi
>>>>
>>>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
>>>>
>>>> regards
>>>> Taha
>>>>
>>>> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
>>>>> I want to redirect some url to another url, the url is not a tapestry page.
>>>>> but decodePageRenderRequest returns a PageRenderRequestParameters
>>>>> How can I do this.
>>>>>
>>>>> --
>>>>> Bo Gao
>>>>> elivoa@gmail.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>
>>> --
>>> Bo Gao
>>> elivoa@gmail.com
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> --
> Bo Gao
> elivoa@gmail.com
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Bo Gao <el...@gmail.com>.
> Just return a URL instance of a non-tapestry page from the event
> handler. I think that will do

I do this in a PageRenderLinkTransformer, the interface is 
public PageRenderRequestParameters decodePageRenderRequest(Request request) ;
So I must return PageRenderRequestParameters, The first parameter must be a valid page name.
Is their a way that I can rewrite the url to a common url.

On Jul 18, 2011, at 6:45 PM, Taha Hafeez wrote:

> Just return a URL instance of a non-tapestry page from the event
> handler. I think that will do
> 
> 
> On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao <el...@gmail.com> wrote:
>> Thank you for your response,
>> 
>> For example I want to redirect /download to another url "download.do"
>> But the download.do is not a tapestry page, it's not handled by tapestry.
>> How to do this?
>> 
>> 
>> On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote:
>> 
>>> Hi
>>> 
>>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
>>> 
>>> regards
>>> Taha
>>> 
>>> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
>>>> I want to redirect some url to another url, the url is not a tapestry page.
>>>> but decodePageRenderRequest returns a PageRenderRequestParameters
>>>> How can I do this.
>>>> 
>>>> --
>>>> Bo Gao
>>>> elivoa@gmail.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>> 
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>> 
>> 
>> --
>> Bo Gao
>> elivoa@gmail.com
>> 
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

--
Bo Gao
elivoa@gmail.com





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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Taha Hafeez <ta...@gmail.com>.
Just return a URL instance of a non-tapestry page from the event
handler. I think that will do


On Mon, Jul 18, 2011 at 4:04 PM, Bo Gao <el...@gmail.com> wrote:
> Thank you for your response,
>
> For example I want to redirect /download to another url "download.do"
> But the download.do is not a tapestry page, it's not handled by tapestry.
> How to do this?
>
>
> On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote:
>
>> Hi
>>
>> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
>>
>> regards
>> Taha
>>
>> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
>>> I want to redirect some url to another url, the url is not a tapestry page.
>>> but decodePageRenderRequest returns a PageRenderRequestParameters
>>> How can I do this.
>>>
>>> --
>>> Bo Gao
>>> elivoa@gmail.com
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>
> --
> Bo Gao
> elivoa@gmail.com
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Bo Gao <el...@gmail.com>.
Thank you for your response,

For example I want to redirect /download to another url "download.do"
But the download.do is not a tapestry page, it's not handled by tapestry. 
How to do this?


On Jul 18, 2011, at 6:18 PM, Taha Hafeez wrote:

> Hi
> 
> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
> 
> regards
> Taha
> 
> On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
>> I want to redirect some url to another url, the url is not a tapestry page.
>> but decodePageRenderRequest returns a PageRenderRequestParameters
>> How can I do this.
>> 
>> --
>> Bo Gao
>> elivoa@gmail.com
>> 
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

--
Bo Gao
elivoa@gmail.com





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


Re: how to redirect to a common url in PageRenderLinkTransformer.decodePageRenderRequest

Posted by Taha Hafeez <ta...@gmail.com>.
Hi

http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/

regards
Taha

On Mon, Jul 18, 2011 at 3:22 PM, Bo Gao <el...@gmail.com> wrote:
> I want to redirect some url to another url, the url is not a tapestry page.
> but decodePageRenderRequest returns a PageRenderRequestParameters
> How can I do this.
>
> --
> Bo Gao
> elivoa@gmail.com
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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