calling servlets by Request Builder

Hi,
I one of my view after clicking on the button I would like to call another servlet to do some things. I try to use RequestBuilder from com.google.gwt.http.client.RequestBuilder; but as far as I understand this piece of code has to be on server side also. Is there already a Vaadin call for do such things? If not how to port that piece to server side?

Hi,

The real Java on the server side has much better tools for calling external services. In all your server side Vaadin code your should pretty much ignore what is on *.client packages. It might actually be that you have some obsolete dependency if you have RequestBuilder in your (server side) Vaadin code on your classpath.

With core JDK libraries you can simply use URL.openConnection(), but I strongly suggest to uses e.g. apache httpclient if you are doing anything non-trivial. And if you are [consuming REST services]
(https://vaadin.com/blog/-/blogs/consuming-rest-services-from-java-applications), you should read my arcticle about it.

cheers,
matti