Thanks Richard, I'll try that.

2010/11/25 Richard Hill <r...@su3analytics.com>

>
> Ok so, if I follow correctly:
>
> Page A: Doesn't have a form. So instead you have a normal link. This
> contains as url parameters the data to be sent. After processing you
> want to redirect to Page B. So you could do something like this:
>
> PageA.java:
>
> @Inject
> private Request request;
> @Inject
> private PageRenderLinkSource prls;
>
>
> public Link onActivate() {
>
>   String value1 = request.getParam("key1");
>   String value2 = ....
>
>   // Do something with these
>
>   Link link = prls.createPageRenderLink(PageB.class);
>   link.addParameter("key1", value1);
>   ...
>   return link;
>
> }
>
>
> If the processing is done by PageA as above, you'll need some logic in
> onActivate() that determines whether you redirect or render the page
> (returning null will mean that PageA is rendered).
>
> Or instead of a <t:pagelink> in PageA you could use an <t:actionlink>
> instead, and return the Link in the onActionFromYourLink().
>
> Hope that helps.
>
>
>
>
>
>
>
>
>
> -----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: Thu, 25 Nov 2010 11:56:15 +0100
>
> Thanks Richard for your response.
> What I want is to do a post request but my page dosn't contain any form.
> The
> user will be redirected to an URL with some parameters and after that I
> must
> get some other parameters from the response.
>
> I hope that is more clear now.
> Thanks.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to