Do you define local variables in the scriptlet tag <%% >?

it is said to be a local variable
clipboard.png

count<% %>
clipboard.png

on the Internet.
Jsp
Mar.01,2021

this is a typical mix of front and back writing, not only in jsp,php but also in this way. You can think of it this way. <% > the part inside belongs to java,. You can think of it as a large global namespace, with static pages on the outside. When the user requests a web page, the program executes the <% > part, and then the rendering is rendered (for example, the <% = count% > below shows the contents of the variables executed above), and then the user can see the results of the web page.

Menu