Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bookmark URL

 
jibs parap
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to code in java to find out the URL the user tried is a bookmark.

Thanks
 
Paul Clapham
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, this Java code runs as an applet? Or what is the connection between that code and a browser?
 
jibs parap
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its not applet
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All a bookmark is is a URL; there's no difference on the server side.
 
Paul Clapham
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mine's still the same about the bookmark.
 
Paul Clapham
Sheriff
Pie
Posts: 20764
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup. Your web application can't tell whether the browser has bookmarked a URL which it sends to you.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys; trying to figure out what could be the best way. If you have any novel ideas, please shout.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought I had.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic