《eclipse JDBC连接数据库及jsp操作数据库数据详细教程.docx》由会员分享,可在线阅读,更多相关《eclipse JDBC连接数据库及jsp操作数据库数据详细教程.docx(23页珍藏版)》请在优知文库上搜索。
1、找如你是一个对这些东西一窍不通的同学,而且已经在网上查阅了各种资料,还是没做til来加么我吊学母CX文或川以是个终结.MyEcIipseRunWndow环境win7ESqlser还有svR*mywVmvTaeKatauccM*yCoeratUtkM悠mzr*ejnMJ6HfiZXMlTc*Mfrtfawy*(4TyWt*M*WM*v*MV119VWMjMMPJMdnQHeMt*He,jup3224nnMxx*MOTt,rewy,wcrn.twvwh*vbwr*WMtuwf*mv,.tOB*JHUttl./1,MMdCBM*mwemvc8MKIZSPsiKMflM”(BKEtrer*eXE*M*
2、y05*aUOsrMwvMDw(4mrvutrwMMBMMM*IWhmfMf WMfYflttfTCftVMicv*9*gandSTC Mtf*cM*MtargonTcnotnw*IWg!RCPreferences.在冲出的窗I选择MyEclipsc-ApplicationScncrs-Tomcat6(这里选择的tomcat必莒是你已羟胜利安奘的版本),选择TomcatHomeDirector,右边的Bmwsc”如图Preferencestypefilterte5ctJavaIsMyEdosc三Ap5caboServersTomcat6108.囹.(S国*用ffi.bb.闺08.倒田囹囹BeT
3、igerGefOrtmo1Qasish1.JBoss2JBOSS3JBoss43tty4Mty5xi53Jonas4JRun4OracteASOrion1Orlon2Resin2Resn3SunJaVaSystemAcokattonServSunJavaSystemApplicationServtSunJovaSystemArokotKxiSorvcTOmCdt4TomcatSTomcatServerOEnabteDiMbteTorrtCatIReslorc(efAUUppyIomcatbTomccServerErWeQ5UcI纵QWTOmCaHomeDrectory更l,选疥Eo选齐选择/O
4、racleASOnon13tOrionZR5n2好RK3tSmJavaSystemApatonSetvS3avaSystemApkationServeSunJavaSystemApp4ationServe磁Tcmcat4王T8K&5ITomcate王WeaOggTonxatServernaWaODttabteTocncatHomeDirectoryTomcat8aseDirectoryTomcatTempDrectoryOptionalProgram2qUrnenbC:ITCmCt6.0UITCnK6.0C:ITOnKat6.0telyI族IICanCel选中TomCat6中的JDK一项.这里
5、要特殊留意,默认的是JRE的运行环境,这里要设定成JDKMr否则,MyEdiPSC无法正常部属WCb版用.也无法正常运行IbmartJR务蒙.我们点击Add按钮ereesJDKTcmcatJDKnameIyel.5.0J)6IOptionalJavaVMAfgjrrfent5typeftkcrtext5JavaSystemApPkatSServe*SunAavaSystemARkatigServeTomcat4TomcatSTaOiiavmvnnrr.rMg-nProjectWebProject占VZebServiceProject 1.General品&CVS方e*Java i卷Myfdip
6、e iHQnDevctopmcrtOgho*vAllVzard5.什yreiiCd一领人制111已的,小女也知人WCn心,j(他按默认,选舞Fin认h”完成工程的创建。NewJ2EEWebProjectCreateWebprojectJZfESpwifkaUonlevdOJZEE1.30l4凶AWM*HTM(AdvancedTemplMes)lKJSP(AdverxedTe11dXVAeb.xml附即所三lm.KSm.*,0v0pagelanguagenyavawmport三,java.utll.,rpageEncodlng=,ISO-8859-1,F*Stringpathrequest.gecConcextPath();StringbasePath三request.gecS