Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Get current URL

Arun R T
10 years ago Jan 19, 2012 3:50pm

My Current URL is http://localhost:8080/Test/?City=Sample

public class MyApplication extends Application {

	private static final long serialVersionUID = 1L;

	@Override
	public void init() {
		String url = getURL().toString();
		System.out.println("url - > "+url);
	}
}

Here I got http://localhost:8080/Test
but I wants http://localhost:8080/Test/Apps/?City=Sample

How it possible. Please help me.

Last updated on Jan, 19th 2012
Bobby Bissett
10 years ago Jan 19, 2012 7:07pm
Arun R T
10 years ago Jan 19, 2012 10:24pm
Bobby Bissett
10 years ago Jan 19, 2012 11:08pm