0

I'm not familiar with AJAX, I need to update a value in a JSP page using a database table. Please help me to write the relevant AJAX part. What is currently I have done is like below, where the page only updates the value on refresh.

<script>
//Ajax code here
</script> 
<body>
    <%ResultSet rsplayer = db.selectQuery("select score, playerid from player where playerid = '100'"); while(rsplayer.next()){%>
    <h1><%out.print(rsplayer.getString("playerid"));%> = <%out.print(rsplayer.getString("score"));%></h1>
    <%}%>
</body>
Dilukshan Mahendra
  • 3,230
  • 7
  • 41
  • 62
  • lots and lots of tutorial on web to get started with – charlietfl Nov 04 '13 at 14:01
  • You can check the answer for [jQuery Ajax](http://stackoverflow.com/questions/19762001/how-to-submit-the-option-selected-from-drop-down-list-in-jsp-page-to-perform-a-m/19763284#19763284) may be useful for you. Let me know if you need any further help. – Vinoth Krishnan Nov 04 '13 at 18:10

0 Answers0