Doing a http request to the webserver after a button has been clicked.

Is there an easy way to make an http request upon a click on a button.
I can attach a Button.ClickListener, but I do not see how I can make an request from there.
The request must originate from the user’s machine because of cookies.

//something like this:

theButton.addListener(new Button.ClickListener() {				
	public void buttonClick(ClickEvent event) {
		URL url = new URL("theurlWhichMustBeVisited");
		//visit the URL from the browser's perspective				
	}
});

The point is not to do anything with the result of the request. The call serves as a signal to the webserver.

/Michael

I’m now thinking about something like this now, is this the way to go?

theButton.addListener(new Button.ClickListener() {               
    public void buttonClick(ClickEvent event) {
        URL url = new URL("theurlWhichMustBeVisited");
        ExternalResource r = new ExternalResource(url);
        Embedded em = new Embedded("caption", r);
        em.setWidth(0);
        em.setHeight(0);
        main.addComponent(em);
    }
});

but where you want to make request to your server or to any other in the web?

with vaadin you are already on the server so you can do whatever you want with this. in another words you are not making any additional request while pressing the button, GWT and vaadin is handling that for you