It creates a variable in a given scope or in page scope if none specified.
With you can create a constant, param or a constant value.
Defining constant value:
The equivalent in JSP:
String age = “25″;
String age = “25″;
Defining a parameter in request scope:
The equivalent in JSP:
String age = request.getParameter(“customerAge”);
String age = request.getParameter(“customerAge”);
Defining a bean:
The equivalent in JSP:
Employee employee = new Employee();
The equivalent in JSP:
Employee employee = new Employee();
No comments:
Post a Comment