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


Win a copy of Java 8 in Action this week in the Java 8 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: 60072
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: incrementing view count and update it into database on clicking a link
 
Similar Threads
make a cell in a table ediable in a jsp page
Selecting a table row by clicking on it
Adding a row dynamically in jsp using javascript
Really need your help with EJB and FORTE
javascript to detect browser closing