JSP Java Server Page JSP HTML XML Tomcat

  • Slides: 18
Download presentation

ประวตภาษา JSP (Java Server Page( ภาษา JSP เปนเทคโนโลยของจาวาสำหรบส ราง HTML, XML หรอ ตามทผใชรองขอ มตวแปลภาษาคอ

ประวตภาษา JSP (Java Server Page( ภาษา JSP เปนเทคโนโลยของจาวาสำหรบส ราง HTML, XML หรอ ตามทผใชรองขอ มตวแปลภาษาคอ Tomcat Apache และ Java Compiler ขอมลจาก http: //java. sun. com/products/jsp/faq. html ขอมลจาก http: //www. apl. jhu. edu/~hall/java/Servlet-Tutorial/ พฒนาโดย James Duncan http: //www. thaiall. com/php Page: 9

บรการ ODBC หรอ JDBC ODBC (Open Database Connectivity) หรอ JDBC (Java Database Connectivity) คอบรการเชอมตอฐานขอ

บรการ ODBC หรอ JDBC ODBC (Open Database Connectivity) หรอ JDBC (Java Database Connectivity) คอบรการเชอมตอฐานขอ มลใน Microsoft Windows ทำใหนกพฒนาสามารถเข ยนโปรแกรมตดตอกบฐานข ขอมลจาก http: //www. successmedia. com/dl/pd_309_An http: //www. thaiall. com/php Page: 12

ตวอยางภาษา HTML DOS>explorer (x. htm) x. htm >html< >head><title>hello</title></head< >body bgcolor=yellow< My name is

ตวอยางภาษา HTML DOS>explorer (x. htm) x. htm >html< >head><title>hello</title></head< >body bgcolor=yellow< My name is burin >br><a href=http: //google. com>google. com</a< >br><a href=x. htm>x. htm</a< >br><img src=x. jpg< />body< />html< http: //www. thaiall. com/php Page: 13

ตวอยางภาษา PHP DOS>explorer http: //127. 0. 0. 1/x. php (x. php) ? > for($x=1;

ตวอยางภาษา PHP DOS>explorer http: //127. 0. 0. 1/x. php (x. php) ? > for($x=1; $x<=5; $x} (++ echo "hello". $x. "<br; "< { <? >b>bye</b< http: //www. thaiall. com/php Page: 14

ตวอยางภาษา ASP DOS>explorer http: //localhost/x. asp )x. asp) %> for x = 1 to

ตวอยางภาษา ASP DOS>explorer http: //localhost/x. asp )x. asp) %> for x = 1 to 5 response. write("hello" & x( next <% >b>bye</b< http: //www. thaiall. com/php Page: 15

ตวอยางภาษาจาวาดวย DOS>explorer JSP http: //localhost: 8080/x. jsp (x. jsp) %> for (int i=1; i<=10;

ตวอยางภาษาจาวาดวย DOS>explorer JSP http: //localhost: 8080/x. jsp (x. jsp) %> for (int i=1; i<=10; i}(++ out. println(i; ( { <% >b>bye</b< http: //www. thaiall. com/php Page: 16

ตวอยางภาษาจาวาดวย Servlet (x. java) DOS>explorer http: //localhost: 8080/servlets-examples/servlet/x import java. io; *. import java.

ตวอยางภาษาจาวาดวย Servlet (x. java) DOS>explorer http: //localhost: 8080/servlets-examples/servlet/x import java. io; *. import java. text; *. import java. util; *. import javax. servlet. http; *. public class hi extends Http. Servlet} public void do. Get(Http. Servlet. Request request, Http. Servlet. Response response( throws IOException, Servlet. Exception} response. set. Content. Type("text/html; (" Print. Writer out = response. get. Writer; () out. println("<html><head; ("< String title = "hello; " out. println("<title>" + title + "</title></head; ("< out. println("<body bgcolor="yellow; ("<" out. println(title; ( out. println("</body></html; ("< { { ขอมลจาก http: //www. thaiall. com/php http: //www. thaia Page: 17

ตวอยางภาษา Perl (x. pl) DOS>explorer http: //127. 0. 0. 1/cgi-bin/x. pl /!#usr/bin/perl !#c: /thaiabc/php/perl.

ตวอยางภาษา Perl (x. pl) DOS>explorer http: //127. 0. 0. 1/cgi-bin/x. pl /!#usr/bin/perl !#c: /thaiabc/php/perl. exe print "Content-type: text/htmlnn ; " print "<pre>Hello, World. . . n ; " foreach $key (keys(%ENV } (( print "$key = $ENV{$key}n ; " { http: //www. thaiall. com/php Page: 18