aspose file tools*
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
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: 61233
    
  66

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]
 
 
subject: incrementing view count and update it into database on clicking a link