<c:forEach var="a" begin="1" end="5">
<button value="${a}" onclick="dian(this)">1</button>
</c:forEach>
<script>
function dian(a) {
alert($(a).val())
}
</script>
<c:forEach var="a" begin="1" end="5">
<button value="${a}" onclick="dian(this)">1</button>
</c:forEach>
<script>
function dian(a) {
alert($(a).val())
}
</script>