As title, can someone help me know can i can javascript function from JSTL. Like this :
<c:forEach items="${items}" var="item">
<c:choose>
<c:when test="${item < 100}">
//Call Javascript Function X Here !?
</c:when>
<c:when test="${item >= 100}">
//Call Javascript Function Y Here !?
</c:when>
<c:choose>
</c:forEach>
Javascript code :
<script>
function X() {
//Do X
}
function Y() {
//Do Y
}
</script>
Aucun commentaire:
Enregistrer un commentaire