This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

bookmark a page

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a application where i have to develop a functionality named "Bookmarking a page".The scenario is when an user logins in my application he will have facilities to read a subject content where the contents moves by pagination. Now the user wishes to bookmark a page i had placed a button or icon to bookmark that page where i am storing the values like in which subject,chapter,and page number of particular chapter.While retriving this bookmark page i retrive as in href tag in jsp page.
IS this correct procedure to do bookmark in application level?Is there any other way?

I want another thing is that when the user signed out and comes to new session by logging in, the application has to start up with bookmarked page.How can i achieve this?

and also i have do automatic bookmarking ie when user decides to sign out, the page wher he signed out should be bookmarked automatically, ie before the session expires i have to bookmark the page ?

Kindly help me? I also need some examples if like this same scenario is available.
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is the book stored? Is it in HTML pages? How is the particular page in a book identified?
If there is a way to identify a page, you can consider storing the user bookmark in a persistent storage per userID and content being read. This stored information can be used later to retrieve bookmark information.
 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Satya Maheshwari wrote:How is the book stored? Is it in HTML pages? How is the particular page in a book identified?
If there is a way to identify a page, you can consider storing the user bookmark in a persistent storage per userID and content being read. This stored information can be used later to retrieve bookmark information.



Thankyou for your idea and help.I have done the bookmark task by getting the url using getQueryString.
Now my problem is that when i login for a new session I should ask a confirmation message, whether to start with bookmark page , if they click ok ,it should go to the book mark page , if they click cancel the confirmation message has to cancel. How can i achieve this automatically when i login in to my application.
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Now my problem is that when i login for a new session I should ask a confirmation message, whether to start with bookmark page , if they click ok ,it should go to the book mark page , if they click cancel the confirmation message has to cancel. How can i achieve this automatically when i login in to my application.



Since the bookmark is stored for a user, whenever the use logs in, you can check if there is a bookmark entry for this user. If there is, you can show the confirmation message. If its yes, you can forward to the bookmark else you can go to the start of the book. does that sound good ?
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't put up a dialog or confirmation message or anything like that. That's just annoying if the user doesn't want to go there.

It's better to add a link somewhere that says something like "take me to the page where I left off last time I was here". Benefit is that it's still only a single click if the user does want to go there, but no click if she doesn't --> fewer clicks --> higher user satisfaction.

You could show that link on subsequent pages as well, just in case the user does something else first, and then decides to return to where she left off.
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!