JSP Flashcards
1
Q
Please provide the 3 lines of code that you would include in a JSP page that
would declare a variable (integer i), and then increment and print it out every
time the JSP page was called.
A
{% ! count = 0; % }
{% ++count; %}
{% = count %}
Should be pointy arrows
2
Q
How to get session variables using JSTL
A
{c:forEach var=”book” values=”${requestScope.books}”}
${book.isbn}
etc.
{/c:forEach}