It's not a secret anymore!*
The moose likes JSP and the fly likes incrementing view count and update it into database on clicking a link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "incrementing view count and update it into database on clicking a link" Watch "incrementing view count and update it into database on clicking a link" New topic
Author

incrementing view count and update it into database on clicking a link

divija sri
Greenhorn

Joined: Mar 23, 2012
Posts: 4
in my project i have a several links of videos,how should i increment and update the no of views field in the database on clicking the link.
can that be done using jsp???or should i use beans ???please reply i am finding it very difficult
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61415
    
  67

While your question is completely different from this one, the answer is the same. JSP's role stops when the page is displayed in the browser.

In your case, using JavaScript and Ajax is probably to best way to go.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: incrementing view count and update it into database on clicking a link