JSP???? - PowerPoint PPT Presentation

1 / 40
About This Presentation
Title:

JSP????

Description:

Title: JSP Author: MC SYSTEM Last modified by: Created Date: 11/11/2006 8:25:11 AM Document presentation format – PowerPoint PPT presentation

Number of Views:81
Avg rating:3.0/5.0
Slides: 41
Provided by: MCS51
Category:
Tags: jsp | windows

less

Transcript and Presenter's Notes

Title: JSP????


1
JSP????
  • ??????JSP?????????????????????????????JSP???????JS
    P??????????????JDK?WEB????JSP???Servlet???
  • ????
  • ???????java???(JDK)
  • ???????Tomcat ???
  • ??JSP??????

2
1.1 ?????JDK
  • JDK(Java Developer Kit, Java?????)?Sun?????Java???
    ????JSP????JDK???,???Java???????????(JVM),?JSP????
    ?Servlet????????????JSP????JDK??????,?Servlet?????
    ?????????Servlet????JDK??????(JVM)??servlet??????

3
  • 1.1.1??JDK?????
  • Java???????????,???????????JDK???,?Windows2000?Win
    dows NT?Linux?Unix????????JDK?
  • 11.2 ??JDK
  • JDK?Sun???????Java????,????Sun????????????J2SE1.4.
    2???JDK?????
  • http//java.sun.com/products/archive/j2se/1.4.2/in
    dex.html
  • ???????j2sdk-1_4_2-windows-i586.exe,????43Mb?

4
  • 1.1.3 Windows2000??????JDK
  • ??JDK?????????JDK.
  • 1.??JDK
  • ?????JDK???
  • ?.??????????????????? j2sdk-1_4_2-windows-i5
    86.exe , ??Java 2 SDK,SEv1.4.2-License???,??1-1
    ???

5
?1-1 Java 2 SDK,SEv1.4.2-License???
6
  • ?.?????????I accept the terms in the license
    agreement???,????,??Java 2 SDK,SEv1.4.2-Custom
    Setup??????1-2???

?1-2 Java 2 SDK,SEv1.4.2-Custom Setup???
7
  • ?.?????????????????????,??Java2 SDK,SE
    v1.4.2-Browser Registration???,??1-3???

?1-3 Java2 SDK,SE v1.4.2-Browser
Registration???
8
  • ?.?????????????????IE?????Java??(Java Plug-In)
    ??????????,??Microsoft Internet Explorer
    ??Java???Java Plug-In ???????web???(IE,Netscape?)?
    ?Java Applet???

9
  • ?.????,??Java2 SDK,SE v1.4.2-Progress???,????
    JDK??,??1-4???

?1-4 Java2 SDK,SE v1.4.2-Progress???
10
  • ?.??????,??Java2 SDK,SE v1.4.2-Complete???,????,
    ??JDK?????1-5???

?1-5 Java2 SDK,SE v1.4.2-Complete???
11
  • 2. ??????
  • ???JDK?,??????????????????????,??????????????????
    ?????,??????????????????,Tomcat?????????????????
    ??
  • ???????????

12
  • (1)?windows?????????????,???????????????,
    ??????????????????????????,??1-6???

?1-6 ???????
13
  • (2)???????????,?????????,??1-7???

?1-7 ???????
14
  • (3)??????????????????????,??????????????????
    ??????,??????????path,??????????
    .C\j2sdk1.4.2\bin ,??1-8???????,???path?????
    ??????????

?1-8 ?????????
15
  • (4)???????????????,??????,??????????????????
    ????classpath,?????????? .C\j2sdk1.4.2\lib
    ,??1-9???????,???classpath??????????????

?1-9 ?????????
16
  • (5)???????????????,?3?????,?????????????????
    ?????JAVA_HOME,?????????? C\j2sdk1.4.2
    ,??1-10???????,???JAVA_HOME???????????????

?1-10 ?????????
17
  • (6)?????????????,????????????????????????,??
    ???????,???????????

18
1.2 ?????WEB???
  • WEB????JSP??????????????,????????????????????.WEB?
    ?????,?????WEB????Tomcat5.0.28
  • 1.2.1 ??Tomcat
  • Tomcat????Sun???JSWDK(JavaServer Web Development
    Kit)??????????????Web???,???JavaSoft?Apache???????
    ????.Tomcat?????JSP???Servlet??.??????????5.0.28?T
    omcat,??????http//archive.apache.org/dist/jakart
    a/tomcat-5/v5.0.28/bin/?

19
  • ????jakarta-tomcat-5.0.28.exe,????10Mb
    ,??1-11???

?1-11 ??Tomcat5.0.28
20
  • 1.2.2 Windows2000???Tomcat 
  • ???Tomcat??????Tomcat.??Tomcat?,???????Jsp?
    ??Servlet??.Tomcat???????
  • 1.?????Tomcat???? jakarta-tomcat-5.0.28.exe
    ,??Apache Tomcat Setup???,??1-12???

21
  • ?1-12 ??Tomcat

22
  • 2.?Apache Tomcat Setup????????,?????Apache
    Tomcat Setup???,??1-13???

?1-13 ??Tomcat????
23
  • 3.?Apache Tomcat Setup????????,??Tomcat????,????
    ?Apache Tomcat Setup???,??1-14???

?1-14 ??Tomcat????
24
  • 4.?????????????Full(????)??,????,?????Apache
    Tomcat Setup???,????,??Tomcat?????,?????E\Tomc
    at 5.0 ,??1-15???

?1-15 ??Tomcat????
25
  • 5.????,?????Apache Tomcat Setup???,??????,????T
    omcat?????,??????,??????????????,????,??1-16???

?1-16 ??Tomcat??????????
26
  • 6.????,????????,??????,????Tomcat????JVM(Java
    Virtual Machine) ?????,???????????1-17???

?1-17 ??Tomcat???JVM
27
  • 7.????,??Tomcat?????????????,?????1-18 ???Apache
    Tomcat Setup???,????,??Tomcat???

?1-18 Tomcat????
28
??JAVA_HOME
  • 1.??JAVA_HOME,??catalina.bat??

2.??JAVA_HOME???
29
DOS????TOMCAT
  • 1.??start.bat??

2.????
30
  • ???Tomcat?,????Tomcat?????????IE???,???????http
    //localhost8080 ????http//127.0.0.18080???,
    localhost?127.0.0.1??????,8080?????Tomcat???
    ????,http//localhost8080????8080???????????Tom
    cat??????????1-20?????,??Tomcat??????????????

31
  • ?1-20 Tomcat????

32
??? ??
\bin ???????Tomcat??????
\common ???????JAR??????,???????JSP???Tomcat?????????
\conf ????????????,??server.xml?web.xml??
\logs ?????????
\server ?????????????
\shared ???????JAR??????,???????JSP????,?????Tomcat?????????
\src ??Tomcat?????????,??jakarta-servletapi-5?jakarta-tomcat-5?jakarta-tomcat-catalina??
\temp ??Tomcat??????????
\webapps ??web??????JSP???????servlet?????????web????ROOT.
\work ??JSP?????servlet????????
  • 1.2.3 Tomcat?????
  • ???JSP???,????Tomcat?????????Tomcat???????1-1???
  • ?1-1(?)
  • Tomcat?????

33
  • 1.??\common?\server?\shared???????
  • \common?????????Tomcat??????????JSP???????
  • \server?????????Tomcat??????????
  • \shared?????????JSP???????

34
  • 2.Tomcat??web????
  • Tomcat??????web?????\Tomcat 5.0\webapps\ROOT????J
    SP???????????????????????example.jsp,????
  • lt
  • out.print("I am example program !")
  • gt
  • ?example.jsp????? \Tomcat 5.0\webapps\ROOT???,????
    ?????????http//localhost8080/example.jsp
    ,??????1-21???

35
?1-21 ????web??
36
  • 3.?????web??
  • ???????JSP???????Tomcat??????web???,???????????web
    ?????????web?????
  • 1).?????( webapps ???)???????
  • ?,????? test ???
  • 2).????? WEB-INF (?ROOT????)
  • 4).????TOMCAT
  • 5).?jsp?????(?example.jsp )???test?????
  • 6).?????? http//localhost8080/test/example.jsp

37
1.3 JSP??????
  • ??JSP?????????,??????????JSP???,JSP????????
  • 1.?????????????JSP??????
  • 2.JSP????JSP?????servlet???????,???????4?,???????
  • 3.JSP????JSP??????,????,???5?,????????
  • 4.JSP???JSP???????servlet???(???.java??)
  • 5.JSP???servlet????????????(.class??)
  • 6.JSP??????????
  • 7.?????????,??????????

38
  • ???JSP?????????1-24??

JSP???
JSP???? .jsp??
??
??
???
Servlet?? .java??
Web???
??
??????? .class??
??
??
??????? ????
?1-24 JSP??????
39
  • ????JSP??????,?????????JSP?????????????,?????JSP??
    ?????,??????JSP??????????,??????????????????,JSP??
    ??????????,JSP??????????
  • ????????JSP????,?????????,??????????JSP???

40
????
  • ???????JDK?????????,?????Tomcat?????????,?????web
    ???????web???????,?????JSP???????????????????
Write a Comment
User Comments (0)
About PowerShow.com