Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2007, 09:13 AM
Member
 
Join Date: Jun 2007
Posts: 13
vissu007 is on a distinguished road
How to get the URL of a web page through a Java application?
I've opened a web page through my browser.Is there any possibility to get the URL of that page through a Java application?Reply soon.Thanq

Last edited by vissu007 : 06-28-2007 at 09:23 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-28-2007, 11:05 AM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Do you rreally mean url or html source code of that web page?

If you mean url then you have two options. You can capture screenshot of the desktop from Java. You can do that and if your web browser is opened, you can extract the url from thie image with image processing. Obviously a difficult way.

Another way can be to use windows APIs to obtain the url of opened web pages. I guess Windows should have such API calls. But to be able to use those calls, you will need to develop Java wrappers for those methods. You might search for APIs for that since someone might have already developed a wrapper.

Good luck.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-28-2007, 11:49 AM
Member
 
Join Date: Jun 2007
Posts: 13
vissu007 is on a distinguished road
Thnx for replying soon.But can u give me the source code of this method if available.Thanq
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-28-2007, 11:56 AM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
I don't know windows APIs much. That is why i said "I guess". You will need to search for it.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display Tabuler Data in J2EE application on jsp page AMATYA-CHANAKYA Advanced Java 2 04-23-2008 06:54 PM
Dynamically loading the jsp page to the application shekar JavaServer Pages (JSP) and JSTL 3 04-09-2008 04:28 PM
How to read a Web Page through java program Java Tip java.net 0 04-04-2008 03:37 PM
How Do I Embed Java Correctly To A Web Page abcd Java Applets 7 01-28-2008 08:53 AM
redirect page within a java applet paul Java Applets 1 08-07-2007 06:11 AM


All times are GMT +3. The time now is 03:18 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org