This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes bookmark a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "bookmark a page" Watch "bookmark a page" New topic
Author

bookmark a page

shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
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.
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
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.


Thanks and Regards
shyamkumar bopannachengalaiah
Ranch Hand

Joined: Dec 30, 2008
Posts: 100
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

Joined: Jan 01, 2007
Posts: 368
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 ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bookmark a page
 
Similar Threads
Managing URLs and bookmarks in Struts
Programming browser behavior
doPost and Bookmarking
bookmarking of a request
bookmark