JavaServer Pages Version 08-alpha copyright2001 B l u e N o t e all rights reserved http://jspboolpaecom
vesion08-alpha, UML (?) part1part2 Part1 part2 part1 JSP Chapter2 ( )
Part 1 chapter 1 JavaServer Pages chapter 2 chapter 3 / chapter 4 JavaBeans & JSP chapter 5 Custom Tag Library chapter 6 Cookie & Session chapter 7 JDBC & JSP
Chapter 1 : JavaServer Pages jsp, Jsp JSP, ASP, PHP, jsp aspphp 1 HTML Web Page 2 HTML, DHTML, XHTML, XML ( ), jsp SunJavaServer Pages jsp 4 JavaServer Pages HTML, DHTML, XHTML, XML J2EE Java, J2EE jsp? jsp jsp : aspnet beta1 aspnet jsp (?) jsp Code behind, HTML form, ado, jspjavabeans,, custom tag library asp jsp ASPPHP, CGI
, jsp (servlet) Jsp jsp jsp, jsp API
Chapter 2 JDK /Jsp ( ) JDK /jsp ( ) Windows2000/ Linux( 70) Jakarta-tomcat, Resin JDK - windows JDK Sun JDK Setup
next> JDK JRE(Java Runtime Enviromenet) JDK131 Finish Windows NT, 2000
- PATH JDK bin c:\jdk131\bin bin
classpath ;c:\jdk131\lib\toolsjar Dot() toolsjar JDK jar windows 2000 NT40 95,98 autoexecbat pathclasspath set PATH=c:\jdk131\bin set CLASSPATH=;jdk131\lib\toolsjar Linux JDK jdk13 bin sh jdk13 jdk13 jdk130_02-linux- Jdk12targz targz tar xzvf jdk12
Enter Yes PATHCLASSPATH root bash_profile /root ls al vi X-window
vi JAVA_HOME, TOMCAT_HOME /JSP JDK TOMCAT321JDK13 JDK12 JDK13 12 JDK JDK JDK --------- --------- bin jre ------- ------classes bin lib ------- ext JDK bin, rmic(rmi ), jar
jre classes ext classes classes? jre - lib - ext ext jar lib rtjar JDK core package jar ext classes Jakarta-tomcat tomcat 32 apache Group 32 22/jsp11 Tomcat /jsp apache Apache tomcatsun apache, sun JSWDK(javaServer Web Development Kit) Tomcat http://jakartaapacheorg Tomcat lib/servletjar classpath 2000??? ( ) Jdk, 95,98 autoexecbat set classpathservletjar classpath javaxservlet import j2ee TOMCAT_HOME JAVA_HOME (value) tomcat jdk bin startupbat http://localhost:8080
jsp jakara-tomcat/webapps/root, root web-inf/classes targz, targz tar xvzf jakarta-tomcat-321targz /usr/local jakarta-tomcat mv Jakarta-tomcat-321 /usr/local/jakarta-tomcat /bin/startupsh /bin/startupsh /bin/shutdownsh Apache (?) apache + tomcat apachemodulejservdll apache modules apache java,jsp
( http://jspboolpaecom???) apache conf httpdconf (apache 1317 ServerName ) ServerName localhost ip, (127001) ( ) Include "C:/jakarta-tomcat/conf/tomcat-apacheconf" /, http://localhost 80 Not Acceptable html, jsp htdocs, webapps\root\ servlet webapps\root\web-inf\classes? ^^;; http://localhost/servlet/ mod_jservso libexec cp htdoc Include /usr/local/jakarta-tomcat/tomcat-apacheconf tomcat-apacheinclude, tomcatconf include configure - enable-module=so rpm, tomcatapache (apache ), (?) Resin Resin(+IIS, Apache)
Resin 22/jsp11 123 Tomcat resin (Jrun ) Resin Bin setup IIS setup IIS OK~ ISAPI OK IIS IISresin (?) Resin conf/resinconf ( ), <http-server>app-dir app-dir= Apache htdocs IIS wwwroot <cauchocom> <http-server app-dir='c:\apache\htdocs'> <classpath id='web-inf/classes' source='web-inf/classes'/> <servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/> <servlet-mapping url-pattern='*xtp' servlet-name='comcauchojspxtpservlet'/> <servlet-mapping url-pattern='*jsp' servlet-name='comcauchojspjspservlet'/> </http-server> </cauchocom> resin bin/srunexe IIS wwwroot jsp http://localhost/ jsp wwwroot? c:\ Inetpub/wwwroot wwwroot WEB-INF/classes classes
httpdconf LoadModule caucho_module " /mod_cauchodll" AddModule mod_cauchoc <IfModule mod_cauchoc> CauchoConfigFile "C:\\resin11\conf\resinconf" # For security, deployment sites may want to # comment the following out <Location /caucho-status> SetHandler caucho-status </Location> </IfModule> resin, resin IISApache resin Default Root doc doc html, jsp WEB-INF/classes http://localhost:8080 Resin javaxservlet classpath Resin java, lib/jsdk22jar classpath conf/resinconf resin http://wwwcauchocomresin java, jsp : resin 120 resinconf app-dirhttp-server resin app-dirhttp-server <http-server> <app-dir>c:\apache\htdocs</app-dir> </http-server>
resin 123 apachehttpdconf LoadModule caucho_module " /mod_cauchodll" AddModule mod_cauchoc 2 (? ) http://wwwcauchocom resin-123targz tar xzvf resin-123targz /configure --with-apache=/usr/local/apache make make install apachehttpdconf dll so LoadModule caucho_module /usr/local/apache/libexec/mod_cauchoso AddModule mod_cauchoc <IfModule mod_cauchoc> CauchoConfigFile /home/nuguri/resin115/conf/resinconf # Uncomment the following line to debug the connection setup # <Location /caucho-status> # SetHandler caucho-status # </Location> </IfModule> http://localhost:8080 123
/JSP JDK, JSP