Sunday, October 19, 2014

Java Coding Care1: Use Declaration in JSP

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.

No comments:

Post a Comment

Scrum and Scrum master

Scrum  Scrum is a framework which helps a team to work together.  It is like a rugby team (the scrum name comes from rugby game). Scrum enco...