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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to get session variables using JSTL

A

{c:forEach var=”book” values=”${requestScope.books}”}
${book.isbn}
etc.
{/c:forEach}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly