To redirect to an external site, your onActivate() on
onActionFromActionLink() method can return a java.net.URL:


PageA.java:

@Inject
private Request request;
@Inject
private PageRenderLinkSource prls;


public URL onActivate() {

   String value1 = request.getParam("key1");
   String value2 = ....
   
   // Do something with these, then:

   String externalPage = "http://externalsite.com/dir/page?key1="; +
value1 + "key2=" + value2 +... ;

   URL url = new URL(externalPage);
   return url;
}

Obviously make sure your values are appropriately url encoded.





-----Original Message-----
From: Gnu Ubuntu <gnu.ubu...@gmail.com>
Reply-to: "Tapestry users" <users@tapestry.apache.org>
To: Tapestry users <users@tapestry.apache.org>, r...@su3analytics.com
Subject: Re: Redirect to URL with params
Date: Fri, 26 Nov 2010 10:20:19 +0100

Hi,
It not works, because I redirect to an external URL with params.
So I don't know if I must use Response object, and if so how to pass params
to it?
Thanks in advance.



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

Reply via email to