Re: t5: passing query string when redirect

2009-06-10 Thread Angelo Chen
Hi, Thanks for the quick reply and I think your first answer should work, reason for using query string is, it is from Google, it passes ?glid=test something to the site. Thiago H. de Paula Figueiredo wrote: > > On Wed, Jun 10, 2009 at 11:21 AM, Angelo Chen > wrote: > Couldn't you use activat

Re: t5: passing query string when redirect

2009-06-10 Thread Ulrich Stärk
I'm sorry. links are now (5.1) obtained via PageRenderLinkSource's createPageRenderLink(...) Ulrich Stärk schrieb: You can also return a Link instance (you can obtain one by injecting ComponentResources and calling resources.createPageLink(...)) and set the parameter with link.addParameter(...

Re: t5: passing query string when redirect

2009-06-10 Thread Thiago H. de Paula Figueiredo
On Wed, Jun 10, 2009 at 11:21 AM, Angelo Chen wrote: > Hi, > > In index page my app will do a return MyPage.class, so browser address bar > shows localhost/mypage instead of localhost, now I'd like to pass any query > string from the url to the new page, it should look like this: > > if user type

Re: t5: passing query string when redirect

2009-06-10 Thread Ulrich Stärk
You can also return a Link instance (you can obtain one by injecting ComponentResources and calling resources.createPageLink(...)) and set the parameter with link.addParameter(...) prior to returning it. Uli Angelo Chen schrieb: Hi, In index page my app will do a return MyPage.class, so brows

t5: passing query string when redirect

2009-06-10 Thread Angelo Chen
Hi, In index page my app will do a return MyPage.class, so browser address bar shows localhost/mypage instead of localhost, now I'd like to pass any query string from the url to the new page, it should look like this: if user type : http://localhost/?test=123 then after redirect, browser's addre