JSP, Servlet, JDBC Learning notes

Source: Internet
Author: User

Web-Learning
* Server
* Network Architecture (interview questions)
* C/S Client/server client/server Side example: QQ fast broadcast storm audio
* Advantages: Good interactivity, small server pressure.
* Cons: Client updated, download.

        * b/S Browser/server browser/server-side example: shopping site 12306 * Disadvantage: Server pressure is large.    * Advantage: Server update is OK.    * Web page Javaweb use Java Development Web page. * Static Web Resources * HTML, CSS, JAVASCRIPT * Dynamic Web resource * data changes.        Example: * servlet/jsp * ASP. NET Microsoft Development * PHP Open Source (development site that's fast), provide templates.        * Developed by RUBY Little Japan. * What does Java do?    Management system in the background, processing big data.        * Introduction of the server * Principle: Network programming.            * Concept: * Hardware: It is a host computer.             * Software: Server-installed software (tomcat).            * After installing the software, it is called the Web server.            * Start the server and access the resources. * Access: http://+ip+ port number to locate the host.            If the resource is a file, it can be accessed.            * Visit Baidu: http://www.baidu.com/* HTTP protocol The default port number is 80 and can not be written. * Ping www.baidu.com 61.135.169.121 * If you want to access the local server (extension) * http://localhost:80 *            HTTP://127.0.0.1:80 * Common server * WebLogic BEA developed (acquired by Oracle) charges support Java EE all specifications (EJB servlet/jsp specification) * (JAVA MySql (Oracle) WebLogic) * WebSphere IBM developed a fee that supports Java EE all specifications (EJB servlet/JSP specification) * The bank likes to use * Tomcat Apache (open source organization, very great) only servlet/jsp specification.    Free of charge.        * Tomcat installation and attention implementation * (Prerequisites) Install JDK, configure Java environment variables.        * Installation version (for customers) * Decompression version: Unzip the current folder, the directory does not have Chinese.        * Boot server: tomcat/bin/startup.bat (boot server) * Access: http://192.168.24.215:8080 Access server's home page. * Shut down the server: Click the Close button, Shutdown.bat * Common Startup issues * Configure environment variables.        C:\Program Files (x86) \java\jdk1.6.0_16 * Flash past, environment variables are not configured well.            * Port Occupancy Problem * Java.net.BindException:Address already in Use:jvm_bind * port is occupied.                    * Fix the problem: * End the application that consumes the port.                    * Locate the application that occupies the port.                * End the program in Task Manager by command Netstat–ano.                    * Modify the port number.                    * The configuration file has been modified. * Tomcat/conf/server.xml configuration file <connector port= "protocol=" http/1.1 "Connect                iontimeout= "20000" redirectport= "8443"/> * There are applications that occupy 80 ports, which are resolved using the top of the way. * Some WIN7 system comes with World Wide WebPublish IIS service, which consumes 80 ports by default. * If there is. To the service, the manual start.

JSP, Servlet, JDBC Learning notes

Related Article

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.