Meclispse 相关配置
2014-01-27 17:56
183 查看
一、 Web 工程改名问题
如果给原来的Web 工程改名,那么部署在Servlet容器内响应的Web路径也要进行修改。1、after change project name then change properties of projec
2、search the Myeclipse-Web and change the Web Context-root if it's text is not same as project name
二、编辑JSP.Html相关文件
三、更改MyEclipse生成的Servlet jsp 的模板(8.5)
1、关闭你的MyEclipse2、找到MyEclipse的安装目录C:\Program Files\Genuitec (Common 8.6)
3、搜索*wizard*(com.genuitec.eclipse.wizards_8.5.0.me201003052220.jar)
4、打开,找到templates\Servlet.java,这个文件就是MyEclipse生成Servlet的模板代码
jsp 是Jsp.vtl JspMetaTage.vtl
5、弄出来,做好备份,开始修改。
四、struts.xml配置文件编写是没有提示的问题?
方法一:上网即可方法二:
1、拷贝http://struts.apache.org/dtds/struts-2.1.7.dtd地址
2、Eclipse的window、preferences,搜索XML Catelog
3、点击add按钮
Location:dtd文件的路径
Key Type:URI
Key:http://struts.apache.org/dtds/struts-2.1.7.dtd
(action 的文件搜索)