Hi, I have a jsp page, and there is a button on it, when I click this button, I want to go to another url, let's say
http://www.google.com. Is it possible to do it. Can one give me a clue how to implement this using Java?
I tried something like
URL link = new URL(intraURL);
HttpURLConnection httpConnect = (HttpURLConnection)link.openConnection();
httpConnect.setRequestMethod("GET");
httpConnect.setDoOutput(true);
System.out.println(httpConnect.getURL());
httpConnect.connect();
It doesn't work, I guess the above codes just makes a connection, but not physically go to the page.
any help will be apprecitaed.
thanks.