Topic : Declaration in JSP
Always try to use Declaration in JSP page
Example
Need to Use declarations in jsp instead of SCRIPLET for common global
variables
.i.e <%! String path="......"; %>
Advantage
Each time a service method is being called then Variable declaration will be discarded if we will declaration. It declares variable in global scope of a generated servlet for that particular jsp.
Always try to use Declaration in JSP page
Example
Need to Use declarations in jsp instead of SCRIPLET for common global
variables
.i.e <%! String path="......"; %>
Advantage
Each time a service method is being called then Variable declaration will be discarded if we will declaration. It declares variable in global scope of a generated servlet for that particular jsp.
No comments:
Post a Comment