« Home « Kết quả tìm kiếm

LẬP TRÌNH WEB CHẠY Ở SERVER (t.t)


Tóm tắt Xem thử

- LẬP TRÌNH WEB CHẠY Ở SERVER (t.t).
- z Được tạo sẵn các đối tượng của các class.
- L ậ p trình web v ớ i JSP.
- z Các đối tượng được xây dựng sẵn.
- request: đối tượng class HttpServletRequest.
- response: đối tượng class HttpServletResponse.
- out: đối tượng class PrintWriter.
- session: đối tượng class HttpSession tạo ra từ method getSession() của đối tượng request.
- application: đối tượng class ServletContext.
- config: đối tượng class ServletConfig.
- Ví dụ v ề l ậ p trình web v ớ i JSP.
- <body bgcolor="white">.
- request.getMethod() %>.
- <br>.
- request.getRequestURI() %>.
- request.getProtocol() %>.
- request.getServletPath() %>.
- request.getPathInfo() %>.
- request.getPathTranslated() %>.
- action="JSPWithCounter.jsp">.
- <br>Enter new value: <input name="sample"><br>.
- value="Submit">.
- value="Reset">.
- times.</p>.
- L ậ p trình web v ớ i ASP.
- Đặt mã trong cặp dấu : <%...%>.
- <FONT SIZE=4 COLOR="#0000FF">.
- METHOD="Get">.
- TYPE="text">.
- VALUE="SUBMIT">.
- z Đối tượng xử lý request là Request.
- z Request.Form(“field_name”).
- z Request.Form(“field_name”)(index).
- z Request.Form(“field_name”).Count.
- z Request(“field_name”).
- z Request.QueryString(“field_name”)(index).
- z Request.QueryString(“field_name”).Count – Lưu ý về một số field đặc biệt:.
- z Đối tượng xử lý response là Response.
- Request.Cookies(cookie)[(key)|.attribute].
- z Đối tượng Session.
- Có thể lưu dữ liệu, đối tượng của một session..
- z Đối tượng Application.
- Có thể dùng để lưu trữ dữ liệu, đối tượng..
- z Đối tượng Server.
- Có hai phương thức thường dùng của đối tượng này là:.
- Server.CreateObject(“ADODB.Recordset”) objRecordset.Open “table-name”, “DSN=dsn”.
- Do While NOT objRecordset.EOF.
- Response.Write objRecordset(“field-name”) objRecordset.MoveNext.
- objRecordset.Open strSQL, “DSN=dsn”.
- Server.CreateObject(“ADODB.Recordset”) objRecordset-name.Open “table-name”,.
- obj-Recordset-name.AddNew.
- obj-Recordset-name.Fields(“field-name”).
- obj-Recordset-name.Update.
- obj-Recordset-name.Close.
- z Lập trình Web với CGI.
- Apache Web Server 2.0 z Lập trình Web với Servlet.
- Apache Tomcat 4.1 z Lập trình Web với JSP.
- z Lập trình Web với ASP

Xem thử không khả dụng, vui lòng xem tại trang nguồn
hoặc xem Tóm tắt