Results 1 to 2 of 2
- 02-17-2012, 07:21 PM #1
Member
- Join Date
- Feb 2012
- Posts
- 2
- Rep Power
- 0
How to refresh a page using java?
I have figured out how to start a page:
But how can I now refresh that page?Java Code:public static void displayURL(String url, int buyingprice) { boolean windows = isWindowsPlatform(); String cmd = null; try { if (windows) { cmd = WIN_PATH + " " + WIN_FLAG + " " + url; Process p = Runtime.getRuntime().exec(cmd); } } catch(IOException x) { System.err.println("Could not invoke browser, command=" + cmd); System.err.println("Caught: " + x); } } public static boolean isWindowsPlatform() { String os = System.getProperty("os.name"); if ( os != null && os.startsWith(WIN_ID)) return true; else return false; }
- 02-18-2012, 02:04 AM #2
Re: How to refresh a page using java?
Where is the page being displayed?
Is there an API that you can call to ask the page displayer to refresh the page?
It looks like the page being displayed by another independent application.
The Robot class would be able to move the cursor and press it anywhere on the screen.
Similar Threads
-
Auto Refresh a Java Popup Page?
By lokerd in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-07-2011, 06:46 PM -
Web page refresh
By Araganaus in forum New To JavaReplies: 1Last Post: 09-03-2009, 08:06 PM -
warning that page has expired and i need to refresh the page again
By 82rathi.angara in forum JavaServer Pages (JSP) and JSTLReplies: 5Last Post: 07-15-2008, 01:48 PM -
Refresh the page
By udhayageetha in forum AWT / SwingReplies: 2Last Post: 07-01-2008, 09:03 AM -
How to Refresh the same page by JSP
By AbuAziz in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 12-10-2007, 04:06 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks