eclipse 下面运行jsp
来源:百度知道 编辑:UC知道 时间:2024/06/04 22:36:50
我的elipse j2ee套装 已经有tomcat 6.0了
而且我运行tomcat 也已经运行了
2009-5-13 12:15:03 org.apache.catalina.startup.Catalina start
信息: Server startup in 625 ms
那我的 jsp文件应该放哪运行呢?
我写完jsp 运行都说
HTTP Status 404 -
--------------------------------------------------------------------------------
type Status report
message
description The requested resource () is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.18
而且我运行tomcat 也已经运行了
2009-5-13 12:15:03 org.apache.catalina.startup.Catalina start
信息: Server startup in 625 ms
那我的 jsp文件应该放哪运行呢?
我写完jsp 运行都说
HTTP Status 404 -
--------------------------------------------------------------------------------
type Status report
message
description The requested resource () is not available.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.18
使用eclipse编写并运行jsp程序的步骤
1、点击File->New->Project,在出现的菜单中选择Web->Dynamic Web Project,点击next
2、在Project name中填写工程名称,在target runtime中点击New runtime,选择自己安装的版本的tomcat,点击Finish
3、在左边的Project Explorer中可以找到新建立的工程MyJsp,在工程中找到WebContent
4、右键WebContent,new->jsp file,在出现的窗口,在file name栏可以更改文件名,finish
5、然后就可以编写jsp文件了,需要注意的是,在生成的部分代码中,要将charset后的参数改成“utf-8”,否则显示中文会出现乱码
6、编写jsp文件,实现想要实现的功能
7、点击工具栏中间的绿色按钮即可运行
8、在出现的窗