Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bookmark

 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am developing a application where i have to make bookmark (function) to my apllication . say i am reading a summaries of a subject where it has many chapters(10 chapters),when i learning the chapters i have to make a bookmark there. how can i do this using servlet coding?
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shyam, a simple google search reveals that you can use something like this



to add a bookmark to your browser. You can change the parameters as you want



This is of course javascript as you cannot use servlet to add bookmark to a browser...
 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:Shyam, a simple google search reveals that you can use something like this



to add a bookmark to your browser. You can change the parameters as you want



This is of course javascript as you cannot use servlet to add bookmark to a browser...



Thanks for your reply sir. But the bookmark shouldnt be browser level sir. i should be done at application level . say the bookmark pages should not be added in my browsers . it should be added with in the application.Is there a way for this sir?
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shyamkumar bopannachengalaiah wrote:Thanks for your reply sir. But the bookmark shouldnt be browser level sir. i should be done at application level . say the bookmark pages should not be added in my browsers . it should be added with in the application.Is there a way for this sir?


Argh . Don't call me sir.

Anyways, your requirement don't seem much difficult. But you can only track bookmarks for a user if they are registered to your site. In that way, you can create a database table which will track the bookmarks of the user. When the user adds a bookmark, then you must just send an ajax request or a normal request to the server to add the current page to the database. If the user is not registered, then too you can track their bookmarks by storing them in HttpSession object but the bookmarks will be lost once the session times out...
 
shyamkumar bopannachengalaiah
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:
shyamkumar bopannachengalaiah wrote:Thanks for your reply sir. But the bookmark shouldnt be browser level sir. i should be done at application level . say the bookmark pages should not be added in my browsers . it should be added with in the application.Is there a way for this sir?


Argh . Don't call me sir.

Anyways, your requirement don't seem much difficult. But you can only track bookmarks for a user if they are registered to your site. In that way, you can create a database table which will track the bookmarks of the user. When the user adds a bookmark, then you must just send an ajax request or a normal request to the server to add the current page to the database. If the user is not registered, then too you can track their bookmarks by storing them in HttpSession object but the bookmarks will be lost once the session times out...



thankyou for your suggestion. I really got the thing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic