Java Web (EE) learning route-handing youth to Destiny

Source: Internet
Author: User

reson to do JAVA WEB : 1 , JAVA WEB (Enterprise Level) 2 , Android and the IOS too hot and not compatible

First, JAVA WEB development of knowledge reserves needed

1. Basic Web Design language: HTML , JavaScript , CSS

2. make a dynamic website: Java , JSP ( Servelt )

3. Database: MySQL , SQL Server , SQL Lite , Access , Oracle

4. the popular framework: MVC Thoughts and principles -- Understand Struts , Spring , Hibernate the basic working principle

Description

1. Java Language (Simple + Safety + Portable + Cross-platform { Android---WEB--- Super Computer --- Game Control Center, etc.})

2. Jdek ( Java API for executing database SQL )

3. Servelt ( server-side Appletfor data interaction at both ends )

4. JSP ( A branch of Servelt, which acts as a part of the user interface; two major advantages: (1 ) Write once,Run AnyWhere(2) can use Java beans or Enterprise Java Bean {cross-platform component} )

5. Java Beans ( application component technology, part of application ——— handle complex operations and data )

6. mainstream Design Ideas + Frame Structure (EG:MVC design mode-jsp+servlet+javabean;ssh framework-SSH to struts+ An integrated Framework for Spring+hibernate

Second, Java Web Program Operating principle

( 1 ) (Browser and Web Server Establish connection { TCP sockets })

( 2 ) The browser sends HTTP request (Request line; Request header; blank line; message body)

( 3 ) the server accepts HTTP request (status line; corresponding head; blank line; message body)

( 4 ) server-side shutdown connection; client parsing + postback response; page Recovery

Third, Java Web Application Composition

Previously, Maven managed the dependencies of the project, and finally used Maven, and found that the Web application directory structure, which was not built by the way, was fundamentally different, since every time we went online to search how to build a Maven managed Web application, It is better to find Baidu Google a bit.

Looking for a half day, feel better Maven managed Web application directory structure is this:

├── pom.xml

└── src

    ├── main

    │   ├── java

    │   │   └── mygroup

    │   │       ├── controller

    │   │       │   ├── HomeController.java

    │   │       │   └── PersonController.java

    │   │       ├── dao

    │   │       │   └── PersonDao.java

    │   │       └── model

    │   │           └── Person.java

    │   ├── resources

    │   │   ├── db.properties

    │   │   ├── log4j.xml

    │   │   └── META-INF

    │   │       └── persistence.xml

    │   └── webapp

    │       ├── index.html

    │       ├── META-INF

    │       │   ├── context.xml

    │       │   └── MANIFEST.MF

    │       ├── resources

    │       │   └── css

    │       │       └── screen.css

    │       └── WEB-INF

    │           ├── spring

    │           │   ├── app

    │           │   │   ├── controllers.xml

    │           │   │   └── servlet-context.xml

    │           │   ├── db.xml

    │           │   └── root-context.xml

    │           ├── views

    │           │   ├── edit.jsp

    │           │   ├── home.jsp

    │           │   └── list.jsp

    │           └── web.xml

    └── test

        ├── java

        │   └── mygroup

        │       ├── controller

        │       │   ├── DataInitializer.java

        │       │   ├── HomeControllerTest.java

        │       │   └── PersonControllerTest.java

        │       └── dao

        │           └── PersonDaoTest.java

        └── resources

            ├── db.properties

            ├── log4j.xml

            ├── test-context.xml

            └── test-db.xml

Below is also listed some reference articles, you can do the following reference, I hope all people are not because of this directory structure and Tangled.

Directory structure of the Java EE Project

Http://www.google.com.hk/search?gcx=c&sourceid=chrome&ie=UTF-8&q=the+strutcture+of+a+j2ee+project

Directory structure officially recommended by Java

Http://java.sun.com/blueprints/code/projectconventions.html

Other directory structures to refer to

Http://www.servletworld.com/Servlet-Tutorials/web-application-directory-structure.html

In fact, as long as the basic standards, and then in the program deployment assembly configuration of normal is not much of a relationship.

Third, Java Web Main development Architecture

(1) C/S development structure (both the client and server are computers, the roles are different)

(2) b/S Development Structure

Description: c/S (b/S opposite ) : Advantage: Speed + Quality Disadvantages: Distributed + compatibility + development costs

First,javase 1,Java Object-oriented programming

2 , database Programming ( SQL   Server 

        Oracle Mysql)

Second, html+css (div+css layout)+javascript

  

Three

Java Web MVC Mode xml+servlet+jsp

Iv.SSH Framework

Struts+hibernate+spring

Ajax (JQUERY+EXT+DW2)

Java Web (EE) learning route-handing youth to Destiny

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.