您的位置:首页 > 编程语言 > Java开发

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、关闭你的MyEclipse

2、找到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 的文件搜索)

五、web工程编码方式

http://blog.163.com/magicc_love/blog/static/1858536622012055140899/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息