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

在eclipse如何运行jsp文件?

2013-09-15 23:49 183 查看
1、安装JDK、配置JRE

    •Directory without blank inname

•JAVA_HOME

–Dir of JDK

•PATH

–%JAVA_HOME%\bin

2、安装tomcat

3、加压eclipse (KEPLER)

•Window-Preference-General-Workspace

•Set text file encoding to UTF-8

•Window-Show View-Servers-Create new Server

•Select your Tomcat pathand JDK

•Finish

•File – New – Dynamic web project

•Name

•Version2.5

•Default out folder =web/WEB-INF/classes

•Content directory = web

•Finish

•Servers – Tomcat 6.0Server for
localhost

•Modules – Add – Externalweb module

•Document base = yourproject’s web directory

•Path = /sp, Auto reloadingenabled = false

•OK

•File - Save

•Servers – Tomcat 6.0 for localhost

•Right click – debug

•See : Server start up inxxx ms

4、 右击 .jsp 文件 > Run As  > Run on server

在弹出的窗口中选择一个Tomcat

点击OK
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: