What technologies do Java Web project development need to master?

Source: Internet
Author: User
At present, the informatization construction at home and abroad has entered the web application-based core stage. Java, as the best language for network application, has a promising prospect. However, even if you use Java to build a web application that is not very cumbersome, it is not easy. To sum up, you need to master the following technologies to implement Java Web projects: l Java language l object-oriented analysis design ideas l design mode and framework structure l XML language l web scripting language l database l Application Server l integrated development environment below we look at each technology in detail.
1. Java Language
The Java language system is relatively large, including multiple modules. From the perspective of web project applications, there are four technologies: JSP, Servlet, JDBC, and JavaBean (application. (1) Java Database Connectivity (JDBC) TechnologyIn Java Web application development, the use of database management systems (RDBMS) is indispensable. JDBC (Java database connectivity) is a Java API used to execute SQL statements. It consists of a group of classes and interfaces written in Java programming language. JDBC provides a standard API for tools/database developers to write database applications using pure Java APIs. To put it simply, JDBC can do three things: establish a connection with the database, send SQL statements, and process results. (2) Servlet TechnologyServlet is a program running on the server. It can be considered as a server-side applet. Servlet is loaded and executed by Web servers (such as Tomcat), just as the applet is loaded and executed by the browser. The servlet receives a request from a client (through a web server), performs an operation, and then returns the result. The main advantages of servlet include that the servlet is persistent. The servlet is loaded only once on the Web server and can maintain services (such as a database connection) between different requests ). L servlet is irrelevant to the platform. As mentioned above, servlet is written in Java and naturally inherits the platform independence of Java. L servlet is extensible. Because servlet is written in Java, it has all the advantages of Java. Java is a robust and object-oriented programming language that can be easily expanded to meet your needs. Servlet naturally has these features. L servlet is safe. The only way to call a servlet from the outside is through the Web server. This provides high-level security protection, especially when your web server is protected by a firewall. L servlet can be used on a variety of clients. Since servlets are written in Java, you can easily use them in HTML. (3) assumerver pages (JSP) TechnologyJSP is a small part separated from servlet, which simplifies development and enhances the interface design. JSP is positioned in the development of interactive web pages. Java syntax is used, but the function is much weaker than servlet. In advanced development, it only serves as part of the user interface. When the JSP Container receives a request from the client, it first executes the program fragment and then returns the execution result to the client in HTML format. The program snippets can be database operations, webpage redirection, and email sending. These are all functions required to build a dynamic website. All program operations are performed on the server. The result uploaded to the client through the network is irrelevant to the browser of the client. Therefore, JSP is called server-side language. The primary advantages of JavaServer pages include ● One-time writing and the write once and run anywhere feature as part of the Java platform. The JavaServer Pages technology has the Java language "one-time writing, "execution across regions. As more and more suppliers Add the assumerver Pages technology to their products, you can carefully assess your company's needs and select servers that meet your company's costs and scale, if the demand changes in the future, changing the server platform will not affect the previous cost and manpower development applications. ● With reusable component assumerver pages, you can rely on cross-platform components (such as JavaBean or Enterprise JavaBean components) to perform more complex operations and data processing. Developers can share developed components, or enhance the functions of these components, so that more users or customer groups can use them. The component-based method can accelerate the overall development process and greatly reduce the company's development costs and manpower. ● Web page developers who use tagged pages may not be Java programmers. Therefore, JSP technology can encapsulate many functions into a custom tag, which is fully developed according to XML standards, tag library in JSP technology ). Therefore, web page developers can use custom tags to meet their work needs, without having to write complex Java syntax, so that web page developers can quickly develop a dynamic content web page. In the future, third-party developers and others can create their own tag libraries for common functions, so that web page developers can use familiar development tools, the tag syntax like HTML is used to execute specific functions. ● The support of the N-tier enterprise application architecture is based on the development of the Internet, so as to meet the increasingly complex requirements of future services and no longer subject to regional restrictions, the two-tier architecture of client-server must be abandoned in the past, and the distributed object system must be more powerful and elastic. Because the assumerver page technology is part of Java 2 Platform Enterprise Edition (J2EE) integration, it is mainly responsible for front-end display of results after complex operations, the scattered object system is mainly built on EJB (Enterprise JavaBean) and JNDI (Java Naming and Directory Interface.
(4), JavaBean (Application) Application Component Technology
Application is a Java application. It mainly applies Javabean to web projects and some development projects. It is part of the application. It has a strong logic computing capability and can greatly leverage the advantages of the Java language. Javabean is called the core of Java component technology. The structure of the JavaBean must meet certain naming conventions. JavaBean provides common functions and can be reused, which allows developers to extract some key functions and Core algorithms and encapsulate them into a component object, this increases the code reuse rate and system security.

Advanced web projects apply to all of the above technologies, and joint use and collaborative development between them will improve the development efficiency and system performance.

2,Object-Oriented Analysis Design

Java is a fully object-oriented language, so it will be of great help in project design. In design, we should try to discard the previous process-oriented design methods.

When analyzing project business relationships, apply some UML (uniied Modeling Language) diagrams, such as commonly used use case diagram, class digraphs, and sequence digrams) and so on, it will be of great help, so as to quickly identify the main objects facing the business logic, and then divide the behavior of each object, and finally implement integration and communication between objects.
3. Design Model and frameworkStructure
Java is not difficult from the language perspective, but from the overall design perspective, we still need to understand some advanced application frameworks. To design a good framework structure, it is far from enough to grasp the Java language alone. This involves a design model and some knowledge related to the design model.

The design pattern is even more important in the Java project implementation process. It mainly involves two-layer design patterns, three-layer design patterns, and n-layer design patterns. It directly determines the application, deployment, and actual development and design of the project.

Many common web projects adopt a two-layer development structure. JSP + servlet or JSP + JavaBean. Many projects with high development requirements use the MVC three-layer development structure, that is, JSP + servlet + JavaBean. It can effectively separate logical development, allowing developers to focus on their respective development. At the same time, the entire development structure process is clearer, but it requires a high degree of development attention.
In projects, we often use the famous Model-View-controller (MVC) architecture. The MVC Architecture is proposed along with the development of the Smalltalk language. It is a well-known user interface design architecture. The classic MVC Architecture divides a component (which can be considered a module of the entire application) into three groups of models to manage the data and business logic used in this module. The view management module displays the information to users. The Controller determines how to handle the events generated during the interaction between users and the module, such as clicking a button.

4. xml
Language

Custom files will be applied in the server and design pattern structures, and self-use labels will also be defined in the advanced design of applications. Currently, it is popular to use XML to define configurations, therefore, you must have some knowledge about the XML language. Currently, Java 2 Platform Enterprise Edition (J2EE) architecture is highly praised in the vendor market and the developer community. As a tool, the Extensible Markup Language (XML) simplifies data exchange and inter-process message exchange, so it gradually becomes attractive to developers and becomes popular. Naturally, the idea of accessing or integrating XML solutions in a J2EE architecture is also attractive. This will be a combination of powerful system architecture and highly flexible data management solutions.

XML applications seem to be endless, but they can be divided into three categories:
1. expression and exchange of simple data (Simple API (SAX) and Document Object Model (DOM) Syntax Parsing for XML, different Document Type Definitions (dtds) and Summary (Schemas ))
2. User Interface-related and contextual representation (Extensible style sheet language (XSL) and extensible style sheet language conversion (XSLT ))
3. message-oriented computing (XML-RPC (remote process call), Web Services Based on SOAP protocol, Electronic Business XML (ebXML ))

5. webpage scripting language
 
In order to improve the overall performance of WEB projects and enhance the friendly interface of human-computer interaction, the web script language is very useful. Sometimes it can solve a lot of problems or improve the performance and applicability of programs.

The web script language is executed on the client at a very fast speed, and most of the operations do not interact with the server, so it is ideal in some applications. In designing web project applications, the web script language plays a role that cannot be ignored. Therefore, if you design web project applications, you should have a certain understanding of JavaScript. Javascript is an object-based and event-driven scripting language with secure. It is used to link multiple objects on a web page with HTML hypertext markup language and Java scripting language (Java applet) to interact with Web customers. This allows you to develop client applications. It is implemented through embedding or calling in a standard HTML language. It has the following basic features: 1. It is a scripting language.
Javascript is a scripting language that uses small program segments for programming. Like other scripting languages, JavaScript is also an explanatory language that provides an easy development process.
Its basic structure is similar to C, C ++, and VB. But unlike these languages, it needs to be compiled first, but is interpreted row by row during the program running. It is combined with HTML tags to facilitate user operations. 2. Object-based language.
Javascript is an object-based language and can be viewed as an object-oriented language. This means that it can use the created objects. Therefore, many functions can come from the interaction between methods of objects and scripts in the script environment. 3. Simplicity
The simplicity of JavaScript is mainly reflected in: first, it is a simple and compact design based on the Basic Java statements and control flow, which is a very good transition for learning Java. Second, its variable type is weak, and strict data types are not used. 4. Security
Javascript is a security language. It does not allow access to a local hard disk, nor store data on the server. It does not allow modification or deletion of network documents, information Browsing or dynamic interaction can only be achieved through a browser. This effectively prevents data loss. 5. Dynamic
Javascript is dynamic and can respond directly to user or customer input without passing through web service programs. It responds to users in an event-driven manner. An event-driven action is an action generated by an operation on the home page. It is called an event ). For example, pressing the mouse, moving the window, and selecting a menu can all be regarded as events. When an event occurs, it may cause the corresponding event response.

6. Development Tools(1) DatabaseIn the main applications, there are many database-related links, so you should have a certain understanding of the database. You cannot simply understand one type of database, because many database solutions are proposed in many practical development scenarios. Therefore, you can have a comparison solution only when you understand multiple types of databases. The database should be familiar with its performance and basic operation knowledge, as well as its features. Database development for web projects in Java is mainly for JDBC applications, as well as applications with advanced concepts such as database transaction processing and connection pools.

(2) WebServerLike databases, you should understand the performance, characteristics, and common knowledge of the server. In terms of applications, Web servers are mainly used for configuration and deployment, directory configuration and debugging, modification of configuration file attributes, and control of access permissions and concurrency; java class deployment.
(3) integrated development environment (IDE ):
For Web application developers, a good integrated development environment (IDE: integrated development enviroment) is very important. An integrated development tool that is currently dominant in the market

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.