我不熟悉AJAX,我需要使用数据库表更新JSP页面中的值。请帮我写一下相关的AJAX部分。目前我所做的是如下所示,页面只更新刷新值。
<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>