http://www.jsptut.com/Declarations.jsp
Understand the importance of
<%= %>
To embed single line expression in the code
<% %>
To write a code block
<%! %>
Declaration to enclose your declarations
<%@ %>----> Importing some java library
for example: <%@ page language="java" import="java.sql.*" %>
Variables should not be declared as global otherwise there would be synchronization issues and performance will be hurt. Ideally all the variables should go into request or session object.
No comments:
Post a Comment