1- page directives


<%@ page language="java"%>
<!-- scripting language-->
<%@ page autoFlush="true" %>
<!-- throw exception when false, on jspwriter's object -->
<%@ page buffer="8kb" %>
<!-- jspwriter buffer -->
<%@ page contentType="text/html;" %>
<!-- content representation -->
<%@ page errorPage="err.jsp" %>
<!-- error page -->
<%@ page extends="as.Aop" %>
<!-- extends on HttpServlet class, used rare -->
<%@ page import="java.util.ArrayList" %>
<!-- import -->
<%@ page info="new_Page" %>
<!-- can use it in code, get servletinfo -->
<%@ page isELIgnored="false" %>
<!-- expression language -->
<%@ page isErrorPage="false" %>
<!-- true for err.jsp -->
<%@ page isThreadSafe="true" %>
<!-- shouldn't be false because if it'll be singlethread, it'll lose all benefits -->
<%@ page pageEncoding="ISO-8859-1" %>
<!-- could be any encoding, like ascii -->
<%@ page session="true" %>
<!-- auto session creation -->
<%@ page trimDirectiveWhitespaces="false" %>
<!-- good for code space management -->
<%@ page deferredSyntaxAllowedAsLiteral="false" %>
<!-- characters are allowed as String literals -->

2- include directives


<%@ include file="here"%>
<!-- jsp,html,text file -->

3- taglib directives

<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/core" %>
<!-- other prefixes are c,fmt,sql,x,fn for that particular uri -->

 

Advertisements