MVC循序渐进(环境篇) eclipse+tomcat

类别:Java 点击:0 评论:0 推荐:

一、下载

jsdk 1.42

Eclipse 3.01     http://www.eclipse.org

Tomcat 5.0.28   http://jakarta.apache.org/site/binindex.cgi

com.sysdeo.eclipse.tomcat_3.0.0        http://www.sysdeo.com/eclipse/tomcatPlugin.html

二、安装(jdk,tomcat,eclipse安装略)

1、  目录结构

D:\ eclipse3.01

D:\eclipse3.01\links       mylinks.link(文件)

D:\eclipse3.01\myplugins\eclipse

D:\eclipse3.01\myplugins\eclipse\plugins    com.sysdeo.eclipse.tomcat_3.0.0(下载的插件)

D:\eclipse3.01\myplugins\eclipse\features

D:\jakarta-tomcat-5.0.28

2、  配置

(1)、jdk,tomcat,eclipse安装略(略)
D:\jakarta-tomcat-5.0.28\conf\server.xml
 <Connector port="8080"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000"
               disableUploadTimeout="true" URIEncoding="GBK" />

   (2)、mylinks.link(文件内容)

path=D:\\eclipse3.01\\myplugins

   (3)、启动eclipse (如果eclipse没找到插件,路径是否正确)

   菜单 window->preferences->Tomcat

tomcat version      Version 5.X

Tomcat home       D:\jakarta-tomcat-5.0.28

Tomcat advance->tomcat base   D:\jakarta-tomcat-5.0.28

JVM Setting Jre     j2sdk1.4.2

其他略

(4)、点击eclipse工具栏中 可爱的小猫 启动 tomcat

     http://localhost:8080  成功了

下篇用 jsp model1 简单实现登录过程。

本文地址:http://com.8s8s.com/it/it12126.htm