Results 1 to 18 of 18
- 03-14-2012, 03:30 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
- 03-14-2012, 03:59 PM #2
Re: How to get the URL of current page in java class
You can't write spyware in Java.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 03-14-2012, 06:09 PM #3
Re: How to get the URL of current page in java class
In an applet, the getCodeBase() or getDocumentBase() methods
- 03-14-2012, 06:46 PM #4
Member
- Join Date
- Jan 2012
- Posts
- 45
- Rep Power
- 0
Re: How to get the URL of current page in java class
Why isn't it possible?
- 03-14-2012, 08:00 PM #5
Re: How to get the URL of current page in java class
Can pigs fly?
- 03-14-2012, 08:35 PM #6
Member
- Join Date
- Jan 2012
- Posts
- 45
- Rep Power
- 0
Re: How to get the URL of current page in java class
Yes, if you got the wits. Just attach a heavy duty rocket on one, then sure. I'd suppose it's the same with java, cept not with a heavy duty rocket. For instance, java may not directly be able to get the currently open webpage from external browsers, but who's to say these browsers don't / can't be made to export said information readily available for java? And this is only one way of going about it. Couldn't you just translate network information from your computer and get the required information that way?
I don't know much about java, for sure, but I fail to see why this would be impossible when an URL is only a simple String of data.Last edited by MonkeyMan; 03-14-2012 at 08:38 PM.
- 03-14-2012, 08:42 PM #7
Re: How to get the URL of current page in java class
The contents of the data is not relevant. Getting any byte from any location in any program's memory sounds simple.why this would be impossible
- 03-14-2012, 09:05 PM #8
Member
- Join Date
- Jan 2012
- Posts
- 45
- Rep Power
- 0
Re: How to get the URL of current page in java class
Does it have to be bytes in memory? Is there no automatic export, API or anything for browsers, or OS interface for your IP traffic you could translate?
- 03-14-2012, 09:22 PM #9
Re: How to get the URL of current page in java class
If the bytes are not in memory, where are they?
- 03-14-2012, 09:26 PM #10
Member
- Join Date
- Jan 2012
- Posts
- 45
- Rep Power
- 0
Re: How to get the URL of current page in java class
I mean, do you really have to go get bytes from memory?
This is just an example. Mozilla firefox could have an addon that exports your current url to a file. Java could pick up that file and make use of it, hence getting the URL.
Your OS could track your network traffic, see the IPs you are connected to and export them again to a file, where your java could pick it up and make use of it.
I don't see why you should go tampering with memory and getting bytes, when you could just do with exports.
All you really have to do is get the applications play nice together. Making addons for browsers that export your current URL every time you change the page shouldn't be an issue as far as I know?Last edited by MonkeyMan; 03-14-2012 at 09:28 PM.
- 03-14-2012, 09:29 PM #11
Re: How to get the URL of current page in java class
None of that has anything to do with java programming.
- 03-14-2012, 09:32 PM #12
Member
- Join Date
- Jan 2012
- Posts
- 45
- Rep Power
- 0
Re: How to get the URL of current page in java class
It does if you plan on using the URL information in Java. However, if you plan on using java just you fetch the information directly from the source and nothing else, then I could see why it's a problem. However, getting URL data altogether shouldn't be.
- 03-15-2012, 05:37 AM #13
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Re: How to get the URL of current page in java class
Thanks for reply.
I am not using any applet or servlet. I want to get the URL in the simple java class.
- 03-15-2012, 11:49 AM #14
Re: How to get the URL of current page in java class
Can you save the URL when the user types it into your program?
- 03-16-2012, 11:43 AM #15
Member
- Join Date
- Mar 2012
- Posts
- 3
- Rep Power
- 0
Re: How to get the URL of current page in java class
No, I am not not saving the url.
- 03-16-2012, 11:46 AM #16
Re: How to get the URL of current page in java class
How can we get the URL of currently openedIf you saved it then you would have it and not need to get it.No, I am not not saving the url.
- 03-16-2012, 12:39 PM #17
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 03-16-2012, 12:43 PM #18
Similar Threads
-
Eclipse runs a previous class and won't run the current class
By willisduke3 in forum EclipseReplies: 2Last Post: 02-29-2012, 08:54 PM -
How to pass the value(lift) from one page(SCL.java) to another page(MFCP.java)
By nandhinianand in forum NetBeansReplies: 2Last Post: 08-07-2011, 09:50 PM -
How can i get a string value in return of a thread class to use to show current time?
By asifzbaig in forum AWT / SwingReplies: 4Last Post: 05-08-2011, 09:00 PM -
What method to use to get VALUE of the only checked radio in the current page
By lse123 in forum Advanced JavaReplies: 1Last Post: 12-16-2010, 02:39 PM -
how to Import my Java Class in Jsp Page
By pos in forum JavaServer Pages (JSP) and JSTLReplies: 20Last Post: 04-06-2010, 02:51 PM


2Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks