Declaring a variable in a scriptlet
The variable declaration is legal, but it didn’t quite work the way Pauline hoped.
What she tried:
What she got the first time she hit the page:
What she got the second, third, and every other time she hit the page:
Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.