users@jersey.java.net

Re: [Jersey] redirect

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 16 Oct 2008 14:30:58 +0200

On Oct 16, 2008, at 2:20 PM, Paulo Cordeiro wrote:

> Thanks
>
> I have a GWT client.
> I need implent a Eclipse BIRT service report.
> The client invonke service with params (I tried Jaxb but the mix GWT
> +JAXB not work for me).

What went wrong?

We have not investigated the form of JSON that is produced/consumed by
GWT. It may require special tweaking of the JAXB classes and JSON
configuration for it to work.

>
> Now the params is simple json strings.

You can also use the Jettison JSONObject and JSONArray.

Paul.

> The method must redirec to BIRT external servlet
> and my GWT client show page.
>
>
> Paulo Cordeiro
> paulo_at_link3.com.br
>
> Link3 Tecnologia Ltda
> 71 2102-6000
>
>
>
> 2008/10/16 Paul Sandoz <Paul.Sandoz_at_sun.com>
>
> On Oct 15, 2008, at 11:03 PM, Marc Hadley wrote:
>
> On Oct 15, 2008, at 4:57 PM, Paulo Cordeiro wrote:
>
> How can I make a redirect from my method to external servlet
> based in params sending on the post method?
>
> Have your resource method return a Response like this:
>
> return Response.seeOther(uriToExternalServlet).build();
>
>
> And one can use UriBuilder [1] to build "uriToExternalServlet" from
> the (form?) params.
>
> Paul.
>
> [1] https://jsr311.dev.java.net/nonav/releases/1.0/javax/ws/rs/core/UriBuilder.html
>
>
> HTH,
> Marc.
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>