如何将现有的web程序导入到myeclipse环境中去
时间:2025-07-13
时间:2025-07-13
如何将现有的web程序导入到myeclipse环境中去
2006-07-19
如何将现有的web程序导入到myeclipse环境中去
如果要将别人发布的war包,导入到自己的eclipse环境中进行再开发,最快的方法如下:
1、新建一个myeclipse的web project。
2、右键该工程,myeclipse/add struts capability,设置成struts开发环境。
3、将war包解压,全目录覆盖新工程的WebRoot(包括其中的web-inf/meta-inf目录),相应的scr目录(或者对应的包含java文件的目录)覆盖eclipse的src目录。myeclipse会自动将WEB-INF\lib下的jar包作为放到classpath中的。
4、refresh该工程,over。
如何将现有的web程序导入到myeclipse环境中去
莫非你没装tomcat?
首先确保jdk配置正确,再装tomcat
打开tomcat后在地址栏中输入http://localhost:8080/
看到弹出网页说明配置成功.然后把你的项目复制到webapps目录下,输入
先确定tomcat没问题,再配置eclipse
如何将现有的web程序导入到myeclipse环境中去
<jsp:useBean id="hello" class="com.inspiresky.bean.Hello" scope="page"/> <jsp:setProperty name="hello" property="message" value="Hello World!"/>
如何将现有的web程序导入到myeclipse环境中去
<jsp:getProperty name="hello" property="message" /><br>
如何将现有的web程序导入到myeclipse环境中去
后我们修改了工程也可以点此按钮重新部署。这里我们可以点击一下了。 OK ,程序已经部署完成了,下面要运行调试了。 八、运行调试程序 在 Eclipse 的图形菜单栏找到(这个按钮左边那个是重新部署按钮,右边是自掉的浏览 器),点击下拉按钮,后点击 Start 菜单,启动 Tomca
t 。 l]http://localhost:8080/WebTes[/url] t/ ,我们可以看到如下信息: Hello World! This is my JSP page. 说明运行成功。 等 Consol 窗口中 提示 Tomcat 启动成功,我们就可以运行我们的程序了。打开一个 IE 浏览器窗口,输入 [ur