my dog learned polymorphism*
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: 60782
    
  65

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
 
Similar Threads
Really need your help with EJB and FORTE
make a cell in a table ediable in a jsp page
javascript to detect browser closing
Adding a row dynamically in jsp using javascript
Selecting a table row by clicking on it