Eclipse_设置JSP模板
- Windows->Perference->Web->JSP Files 设置编码
- ->Editor->Templates 设置模板
模板内容
<%@ page language=”java” contentType=”text/html; charset=UTF-8”
pageEncoding="UTF-8"%>
<%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core“ %>
<%@ taglib prefix=”fn” uri=”http://java.sun.com/jsp/jstl/functions“ %>
<%String path = request.getContextPath();
String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>Insert title here
${cursor}
还没有评论,来说两句吧...