You can do something like this:
@POST
@Produces(MediaType.TEXT_HTML)
public Response uploadFile(...) {
...
if (success) {
Viewable view = new Viewable("/success.jsp", null);
return Response.ok().entity(view).build();
} else {
return Response.status(500).build();
}
}
Anil Kumar Veeramalli escribió:
> Hi,
>
> in uploadUrlFormData() method, once everything is done , I want to
> redirect sucess page.
>
> I found few API's to create URL but not to redirect.
>
> Please suggest me on this.
>
> Thanks,
> Anil
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>