open an html page from java application
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   amita_gajewar
Posted On:   Tuesday, May 30, 2006 05:34 AM


Hi, please let me know if can open an html page from java application. One mechanism that I know is to use JEditorPane. But, for that I shall have to use JFrame and the page will get displayed in it.



I would like to know if we can open Internet Explorer through Java application where the input html page will get displayed.


Thanks in anticipation.


Amita

Re: open an html page from java application

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, June 10, 2006 04:24 PM


I would like to know if we can open Internet Explorer through Java application


Of course (IF the app is running on a Windows box, with a graphics context e.g. someone logged in interactively on the console, not running as a service, not running headless etc.) you can use a Runtime.exec, to invoke the internet explorer application (or any other browser, as long as it's installed on the box), and tell it the url to open.

About | Sitemap | Contact