//内容类型及编码
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
//jstl,el表达式需引入的文件
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
//设置el表达式是否忽略为false.不忽略。
<%@page isELIgnored="false"%>
//头部路径信息
<%String path = request.getContextPath();
String basePath =request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
[注]引入jstl文件和使用el表达式需要导入jtsl.jar包和standard.jar包