---
title: "Eclipse Jee项目开发前准备 （转）"
author: "ethan163"
date: "2012-12-31T09:06:56Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-jee"
draft: false
lastmod: "2012-12-31T09:06:56Z"
id: 1757329
url: "https://ethan163.iteye.com/blog/1757329"
---

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