In JSP, the correct way to declare variables and methods is using the declaration tag: <%! ... %>
This adds the code to the servlet's class level, making it accessible throughout the servlet.
Was this answer helpful?
0
0
Top TS PGECET Computer Science & Information Technology Questions