aspose file tools*
The moose likes Java in General and the fly likes bookmark URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "bookmark URL" Watch "bookmark URL" New topic
Author

bookmark URL

jibs parap
Ranch Hand

Joined: Dec 07, 2004
Posts: 134
Is there any way to code in java to find out the URL the user tried is a bookmark.

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18876
    
    8

What's a "bookmark" for the purposes of your Java application? Is that something you plan to implement, or something else?
jibs parap
Ranch Hand

Joined: Dec 07, 2004
Posts: 134
Sorry, by bookmark I meant the URL that can be saved in a browser(Favorites in IE, Bookmarks in FF etc)

Please advise me a strategy how best it can be done.

Also I'd like to know how to find out if the application has been timed out.

Cheers
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42592
    
  65
So, this Java code runs as an applet? Or what is the connection between that code and a browser?


Ping & DNS - my free Android networking tools app
jibs parap
Ranch Hand

Joined: Dec 07, 2004
Posts: 134
its not applet
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

All a bookmark is is a URL; there's no difference on the server side.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18876
    
    8

So, in summary, your requirement is that your application should be able to get into another application (Internet Explorer, Firefox, Safari, etc, etc) and find some of that application's stored data (namely favourites or bookmarks or whatever they call these URLs)?

If that's the case, then your question is really something like "Where does Internet Explorer store its Favourites list?"
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18876
    
    8

jibs parap wrote:Also I'd like to know how to find out if the application has been timed out.


Which application? Yours or the browser? And what does "timed out" mean in the context of your application? (It doesn't really mean anything in the context of a browser.)
jibs parap
Ranch Hand

Joined: Dec 07, 2004
Posts: 134
And what does "timed out" mean

time out = session time out

Sorry guys, Im asking a strategy how best it can be done. In other words, if your client put forward this requirement to be implemented, whats the answer you are going to give them?

Most of of the replies sound like 'we can't do it, go and change the requirement' or am I misunderstood?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42592
    
  65
No, most of the answers are saying that it is not understood, what, exactly, you're trying to do, so you should provide more detail about that.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18876
    
    8

It just struck me that the "java" which jibs parap asked about might possibly be Java code in a Web application. In that case the URL in question would be the URL of the request which the browser sent to the Web application. And the "session time out" would then refer to the Web application's session. This question would all start to make sense if we were told basic information like that.

So is my wild guess correct, jibs?
jibs parap
Ranch Hand

Joined: Dec 07, 2004
Posts: 134
Yes, thats right Paul.

I think I went with a prejudiced mind...so was not clear enough. Hope everything is clear now with Pauls input. Now the answer..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Mine's still the same about the bookmark.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18876
    
    8

Yup. Your web application can't tell whether the browser has bookmarked a URL which it sends to you.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Unless... you were doing something with continuations or some sort of URL-embedded timestamping or something.

So I mean technically you could probably figure out a way to determine this for reasonable values of "robust"... whether or not it's worth it is a different story.
jibs parap
Ranch Hand

Joined: Dec 07, 2004
Posts: 134
Thanks guys; trying to figure out what could be the best way. If you have any novel ideas, please shout.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I thought I had.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bookmark URL