wood burning stoves
The moose likes Beginning Java and the fly likes Java, Send URL, Get URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java, Send URL, Get URL" Watch "Java, Send URL, Get URL" New topic

Java, Send URL, Get URL

Stephen Foy
Ranch Hand

Joined: Oct 17, 2005
Posts: 143

Is there anyway in java to send a url to internet explorer, and get one?

Any help appreciated with this matter?

Stephen Foy - Microsoft Application Development Consultant
Yu Fei Xu

Joined: Mar 15, 2006
Posts: 8
you can vistit the url follow,maybe it can help you..
ak pillai
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
use the URLConnection/HttpURLConnection classes.

java j2ee job interview questions with answers | Learn the core concepts and the key areas
Stephen Foy
Ranch Hand

Joined: Oct 17, 2005
Posts: 143
Thanks alot!
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hi, Stephen, what does your program structure look like? I'm picturing a stand-alone Java program that you start with "java MyProgram" that is trying to start up and work with IE.

You can open IE (or whatever your default browser is) to a specified URL pretty easily.

Actually that will launch the default application for any file. There are just enough confusing issues that I'd grab some code off the web rather than start from scratch. And it won't run on other platforms.

You can't easily get information back from the browser in this structure with native Java. My team experimented with a Java COM bridge called Jacob and got a lot of good stuff going, but not quite reliably enough for production. Google for "java com bridge" and you'll find many free and commercial products.

I was just reading about Ruby Watir. If you're willing to do parts of your application in Ruby it's way cool. Again Windows only.

So was that the right guess on your architecture? Stand-alone Java and IE?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link: http://aspose.com/file-tools
subject: Java, Send URL, Get URL
It's not a secret anymore!