Eclipse Jee项目开发前准备 (转)
Eclipse Jee项目编码设置 Window->Preferences->General->Wordspace->Text file encoding->Other->utf-8 Eclipse Jee JSP文件编码设置 Window->Preferences->Web->JSP FIles->encoding->utf-8 Eclipse Jee JSP文件添加Struts2模板 Window->Preferences->Web->JSP FIles->Editor->Templates->New Name:New JSP Struts2 Context:New JSP description:Struts2 <%@ page contentType="text/html; charset=${encoding}" pageEncoding="${encoding}"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> Insert title here ${cursor}