Dynamic Web Development Basics "notes"

Source: Internet
Author: User

First, C/s structure and b/s structure
1.C/S (client/server): Client service Program, console program, window application
2.B/S (browser/server): Browser service program [java:jsp app; C#:asp.net],web application
Difference: C/S: Client and server side need to develop, each corresponding.
Both client and server need to be maintained
Maintenance trouble
Higher security
b/S: Only server-side development
Maintain only the deployment server side
Easy Maintenance
Low security
Second, b/s program implementation principle
1. User input URL (URL) http://www./souhu.com
2. Make a request (establish a connection to the server)
3. The server processes the request first
4. Server-side Response client
5. Disconnecting from the server side
Three, URL: Uniform Resource Locator
Http://localhost:8080/news/index.html
1.http: Hypertext Transfer Protocol, Web protocol
2.localhost: Server IP Address
Ports used by the 3.8080:web service program
4.news: Application root directory
5.index.html: The requested page, if omitted, takes the default page of the server-side configuration
Iv. Web server:
1.tomcat: Developing Web page Files with Java:. jsp
2.iis: Developing Web page files in C #:. aspx
3.apache: Developing Web page Files with php:. php
V. Tomcat Server
1. Install the decompression version, unzip the copy to the C drive
2. Start service: Startup.bat in Bin directory
3. Shutdown service: Shutdown.bat in Bin directory
4. Modify the port: The default is 8080, you can modify the port in the Connecto tag in the Server.xml file in the directory.
VI. Tomcat Server directory structure
1.bin: script files executed by the server
2.conf: Configuration file
Server.xml: Configuring the server
Web. XML: Configure Publish to Application
3.lib:jar file
4.temp: Temp File
5.webapps: Publish a directory of Web applications
6.work: Translate JSP into the directory where Servelt is located
VII. directory structure of Web applications
1./: root directory, pages and resources for Web applications
2./web-inf: Configuration file, the directory client cannot access, Web. xml
3./web-inf-classes:java byte-code file
The directory where the jar package for the 4./web-inf/lib:web application resides
Viii. JSP (Java Server pages)
Jsp=java Small Script +html
Ix. JSP pages pages directive
<%@ page language= "java" import= "java.util.*,java.text.*" contenttype= "Text/html;charset=utf-8"%>
Page directive Properties
Language: Small scripting language
Import: Guide Pack
Contentype: The encoding of the browser display page

Dynamic Web Development Basics "notes"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.