at present, the information construction at home and abroad has entered the stage based on Web application, Java as the best language to be used in the network, the foreground is optimistic. However, it is not easy to build a Web application that is not trivial, even in Java. To summarize, the techniques required to implement Java Web projects are as follows: L Java language L object-oriented Analysis design concept L design pattern 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 system is very large, including multiple modules. There are JSP, Servlet, JDBC, JavaBean (application) four part technology from the perspective of Web project application. (1), Java database Connectivity (JDBC) technology in the Java Web application development, the use of Databases management system (RDBMS) is indispensable. JDBC (Java Database Connectivity) is a Java API for executing SQL statements. It consists of a set of classes and interfaces written in the Java programming language. JDBC as a tool/database developers provide a standard API that enables them to write database applications using pure Java APIs. To put it simply, JDBC can do three things: L connect to the database, L send SQL statements, L process the results. (2), the servlet technology servlet is a server-side program that can be considered a server-side applet. A servlet is loaded and executed by a Web server (such as Tomcat), just as an applet is loaded and executed by a browser. The servlet receives the request from the client (through the Web server), performs some action, and returns the result. The main advantages of Servlets include that the servlet is persistent. The servlet only needs to be loaded once by the Web server, and it can maintain services (such as a database connection) between different requests. The servlet is platform-independent. As mentioned earlier, the servlet is written in Java and naturally inherits the platform independence of Java. The servlet is extensible. Since the servlet is written in Java, it has all the advantages that Java can bring. Java is a robust, object-oriented programming language that can easily be scaled to suit your needs. The servlet naturally has these characteristics as well. L The servlet is safe. The only way to invoke a servlet from outside is through a Web server. This provides a high level of security, especially when your Web server has firewall protection. The servlet can be used on a wide variety of client computers. Because Servlets are written in Java, you can easily use them in HTML. (3), JavaServer Pages (JSP) technology JSP is a small part of the servlet, which simplifies the development and strengthens the interface design. JSP localization in the development of interactive Web pages. Java syntax is used, but the functionality is much weaker than the servlet, and the advanced development only acts as a part of the user interface. When the JSP container receives a request from the client, it executes the program fragment first, and then responds to the client with the result of the execution in HTML format. Where the program fragment can be: manipulate the database, redirect the Web page, and send E-mail and so on, these are the functions needed to build a dynamic website. All program operations are performed on the server side, and only the results that are delivered to the client on the network are not related to the client's browser, so the JSP is called server-Side Language. The main benefits of JavaServer pages include one-time authoring, execution everywhere (write Once, Run Anywhere) features as part of the Java platform, JavaServer Pages technology has the Java language "write once, execute Everywhere" feature. As more and more suppliers add JavaServer Pages technology to their products, you can make a careful assessment of your company's needs, choose a server that meets your company's cost and size, and replace the server platform without impacting the cost of the previous investment, if future requirements change Human development of the application. Paired with reusable components JavaServer Pages technology can rely on reusing cross-platform components such as JavaBean or enterprise JavaBean components to perform more complex operations and data processing. Developers can share development-completed components, or they can enhance the functionality of these components to be used by more users or groups of customers. Based on the method of good use of components, the overall development process can be speeded up, and the development cost and manpower of the company are greatly reduced. Developing Web page developers with tabbed pages are not necessarily programmers who are familiar with the Java language. As a result, JSP technology can encapsulate many functions and become a custom label, which is based entirely on XML standards, that is, the tag library in JSP technology. As a result, Web page developers can use custom tags to achieve job requirements without having to write complex Java syntax, allowing web page developers to quickly develop a dynamic Content Web page. In the future, third-party developers and others can create their own tag libraries for common functions, allowing web page developers to work with familiar development tools, like HTML-like tag syntax, to perform specific functions. N-support for Tier enterprise application architectures in view of the development of the Internet, in response to the increasingly complex requirements of future services, and no longer subject to geographical constraints, it is necessary to abandon the previous client-server's two-tier architecture, which turns to a more powerful and resilient dispersion object system. Because JavaServer Page technology is Java 2Platform Enterprise Edition (Java ee) integration, it is mainly responsible for the front end display after the complex operation of the result content, while the decentralized object system is mainly dependent on the EJB (Enterprise JavaBean) and Jndi ( Java naming and Directory Interface). (4), JavaBean (application) Application component technology application is a Java application that primarily applies JavaBean in Web projects and some development. It is a part of application, logical computing ability is very strong, can greatly exert the advantages of the Java language. JavaBean is known as the core of Java component technology. The structure of the JavaBean must meet certain naming conventions. JavaBean can provide common functionality and can be reused, which allows developers to extract some key functions and core algorithms to encapsulate as a component object, which increases the reuse rate of code and the security of the system. Advanced Web projects are applied to all of these technologies, and joint use and collaborative development between them can improve the efficiency of development and the performance of the system. 2, object-oriented analysis and design idea the Java language is a completely object-oriented language, so in the project design will be a great help, in the design should try to abandon the previous process-oriented design methods. When analyzing project business relationships, apply some UML (Unified Modeling Language) diagrams, such as common use case diagrams Casediagram), Class diagram (classdiagram), time series diagram (sequence diagram) and so on, will be very helpful, so as to find the main business logic to face the object, then the behavior of each object division, and finally the integration between the object and communication. 3, design patterns, and framework structure Java is not difficult from a language perspective, but we also need to understand some of the advanced application frameworks from a holistic design perspective. Mastering the Java language alone is not enough if you want to design a good frame structure. This involves a design pattern, as well as some knowledge related to design patterns. Design Patterns in the Java project implementation process is the most serious. Mainly in the design mode with two layer, three layer design mode and n layer design mode. It directly determines the application, deployment and actual development design of the project. Many of the common Web projects use two-tier development constructs. JSP+servlet or Jsp+javabean. The three-tier development structure of MVC is used in projects where development requirements are high, i.e. jsp+servlet+JavaBean. It allows developers to focus on their own development by separating logical development into an effective way. At the same time, the entire development structure process is clearer, but requires a relatively high degree of development coordination. In the project, we often use the famous model-view-Controller (MVC) architecture. The MVC architecture is proposed with the development of Smalltalk language language, which is a well-known user interface design architecture. The classic MVC architecture divides a component (a module that can be thought of as an entire application) into three parts of the model to manage the data and business logic used in this module. And how the View management module is displayed to the user, the Controller decides how to handle the events generated when the user and the module interact, such as clicking a button. 4, XML language in the server and design pattern structure will be applied to the customization file, and in the application of advanced design will also define their own tags, now popular is to use XML to define the configuration, so the XML language should have a certain grasp. Currently, the Java 2 Platform Enterprise Edition (EE) architecture is highly regarded in the vendor market and the developer community. As a tool, Extensible Markup Language (XML) simplifies data exchange, interprocess messaging, and becomes increasingly appealing to developers and becoming popular. Naturally, the idea of accessing or integrating XML solutions in the Java EE architecture is tempting. This will be a combination of a powerful system architecture and a highly flexible data management solution. XML applications seem to be endless, but they can be broadly divided into three broad categories:1, presentation and exchange of simple data (Simple API (SAX) and Document Object Model (DOM) syntax parsing for XML, different document type definitions (DTDs) and Profiles (schemas))2, user interface-related, presentation-related contexts (Extensible Stylesheet Language (XSL), Extensible Stylesheet Language Transformations (XSLT))3. Message-Oriented computing (xml-RPC (Remote procedure Call), SOAP protocol-based Web service (Web services), Electronic Business XML (EbXML))5, Web scripting language in order to improve the overall performance of Web projects, improve the friendly interface of human-computer Interaction, Web page scripting language is very useful, and sometimes can solve a lot of problems or improve the performance and application of the program. The execution of the Web scripting language is performed at the client, is very fast, and most of the operations do not interact with the server, so it is ideal in some applications. The scripting language of Web pages plays a role in designing Web project applications, so if you are designing Web project applications, you should have a certain understanding of JavaScript. JavaScript is a scripting language that is Object-Based-based and event-driven (driven) and has security performance (secure). It is used in conjunction with HTML Hypertext Markup Language, Java scripting language (Java applet) to link multiple objects in a single Web page, interacting with web customers. So that you can develop client applications and so on. It is implemented in the standard HTML language by embedding or inserting. It has the following basic features:1. It is a scripting language JavaScript is a scripting language that implements programming in a small program segment. Like other scripting languages, JavaScript is also an explanatory language that provides an easy development process. Its basic structure is in the form of C, C++, VB very similar. But unlike these languages, it needs to be compiled and interpreted on a row-by-line basis in the course of a program's operation. It is combined with the HTML identity to facilitate the user's use of the operation. 2. Object-based language. JavaScript is an object-based language that can be viewed as an object-oriented one. This means that it can use the objects that it has created. Therefore, many functions can be derived from the interaction of the methods of the objects in the scripting environment with the script. 3. The simplicity of simple JavaScript is mainly embodied in the following: First, it is a simple and compact design based on Java basic statements and control flow, which is a very good transition for learning java. Second, its variable type is weakly typed and does not use strict data types. 4. Security JavaScript is a security language that does not allow access to local hard disks, does not store data on the server, does not allow modification and deletion of network documents, and can only be browsed or dynamically interacted through a browser. So as to effectively prevent the loss of data. 5dynamic JavaScript is dynamic and can respond directly to user or customer input without having to go through a Web service program. It responds to the user in an event-driven manner. Event-driven refers to the action that occurs when an action is performed on the home page, called an event. For example, pressing the mouse, moving the window, selecting a menu, and so on can be considered as events. When an event occurs, a corresponding event response may be caused. 6, development tools (1), database in the main application, database related LINKS application Many, so the database should have a certain understanding. It is not possible to understand only one database, because many database solutions are presented in many practical developments, so there is only one comparison scenario if you understand multiple databases. The database should be aware of his performance and some basic operational knowledge, as well as the characteristics of the database. The development of database for Java language Web project is mainly the application of JDBC, as well as the application of advanced concepts such as database transaction processing and connection pool. (2, Web server and database, you should understand the performance of the server, characteristics and some common sense. In the application aspect, the Web server is mainly for configuration and deployment, configuration of directories, debugging, modification of profile properties, control of access rights and concurrency, deployment of Java classes, etc. (3), integrated development Environment (IDE): "The public wants to be good, its prerequisite". For Web application developers, a good integrated development environment (ide:integrated development enviroment) is very important. An integrated development tool that currently dominates the market is eclipse.
What Technologies Java_web need