• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Internet Explorer

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to open the Ineternet Explorerer from Java Console Application using any class or method.
Internet Explorer should be opened with specified ( URL ) when the Button is clicked in Frame window application.
please reply.
Thanx in Advance
Shantanu
 
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this is the best approach but you might look at java.lang.Runtime (specifically the exec function) and java.lang.Process. You use these classes to create and control a native process. I've used this approach to send email via UNIX email programs from a Java program.
Please let me know if this works.
 
Shantanu Gangakhedkar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That I have tried . It is working but how to Pass the URL in the Browser . When the IE and Netscape will be opened it should be opened with the Specified URL and Can we pass the Parameters from Frame window into the Browser.
please reply
Shantanu.
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If IE works like Netscape (a bad assumption but lets go with it...) you could pass in the URL as a command line argument when you fire it up, ie, netscape <URL>.
So you could say (maybe)
Runtime runtime = Runtime.getRuntime();
=
Process ieProcess = null;
try
{
ieProcess = runtime.exec("<IE> <URL>");

...
}
...
where <IE> is how you invoke IE and <URL> is the URL you want to use.
I'm not sure about passing Frame params into the browser but you could try this approach and see if it works for that, too.
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic