include directives
syntax:<%@ include file= " path + file name "%>
contains the specified file into the current JSP .
Application ( applied global Variables )
Enable data sharing between users
Common methods:
Application.setattribute (stirng key,object value);
Application.getattribute (String key);
1<% @page import="Java.text.SimpleDateFormat"%>2<% @page import="java.util.Date"%>3<%@ page language="Java"Contenttype="text/html; Charset=utf-8"4pageencoding="Utf-8"%>5<! DOCTYPE HTML Public"-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD">678<meta http-equiv="Content-type"Content="text/html; Charset=utf-8">9<title> Visitors </title>Ten One<body> A<% -Integer count= (integer) Application.getattribute ("Count"); - if(Count! =NULL){ theCount = count+1; -}Else{ -Count =1; - } +Application.setattribute ("Count", count); -%> + A<% atInteger i= (integer) Application.getattribute ("Count") ; - out. Print ("Statistics Visits: There are currently"+i+"personal access to this site"); -%> - -</body> -ExampleInclude and application