Extjs + DWR + spring + hibernate development HRMS (5)

Source: Internet
Author: User

Okay, huh, cloud dizzy brain copy and paste so muchCode. Let's make a brief summary. Our small project involves the knowledge of extjs, JSON, DWR, spring, and hibernate components. It is not a task of learning to be proficient in every part of the project. Let's take a look at these framework technologies:

 

1. extjs is a very good Ajax framework that can be used to develop Ajax applications with rich clients with gorgeous appearances, making our B/S applications more dynamic and active. It is a front-end Ajax framework written in Javascript that is not related to background technology. Therefore, extjs can be used in applications developed in. net, Java, PHP, and other development languages. To use extjs, you must first obtain the extjs library file. The framework is open-source and can be downloaded directly from the official website at http://extjs.com/download. In our previous project, we used extjs components to produce such amazing page effects. If you are interested, you can study it in depth.

 

2. JSON is the native format in JS. It is a very simple and practical data transmission format. A name: a name-value pair like this is a JSON element (note that the value here can be of the string, number, array, Boolean, object, or null type ), multiple JSON elements are enclosed by commas (,). Multiple JSON objects are enclosed by commas (,). Multiple JSON objects are separated by commas (,) and can be enclosed by [] to form a JSON array. Therefore, it can express some complex data in a very simple and easy-to-understand manner, and is widely used now. In our previous project, we used JSON as the data transmission format to implement the staff data paging function. We can see that extjs provides good support for this format.

 

3. DWR is a Java open source library that allows you to create Ajax web sites. It allows you to use JavaScript code on the web browser to call Java code on the Web server, just like Java code in the browser. DWR contains two main parts:

A) a Java Servlet running on the server, which processes the request and returns a response to the browser.

B) JavaScript running on the browser, which sends requests and dynamically updates webpages.

In our previous project, we used DWR to integrate Spring to delete employees, organizations, and users and obtain all organization information. Other operations are implemented using the built-in Ajax support of extjs.

 

4. Spring is an open-source lightweight container framework based on IOC and AOP. It is called the spring of Java ee. It aims to promote the best coding practices and act as the system binder, so that we can "concentrate on doing things ". The content includes IOC container, AOP implementation (declarative transaction), Dao/ORM support, MVC implementation, and Web Integration. In our previous project, we used spring's MVC Framework to receive user requests and respond to users, and managed the controller using its IOC container, services and Dao objects and their relationships use their declarative transactions to optimize transaction processing, and are well integrated with the later Hibernate framework.

 

5. Hibernate is an excellent persistence framework. It allows developers to use OOP to manipulate data, greatly simplifying database access operations and shielding the differences between databases. It is the de facto standard of global ORM products. In our previous project, we used hibernate to complete the specific crud work and database access details, and used metadata annotations to map objects and relationships, this eliminates the need to write tedious XML ing files. So we can see that spring and Hibernate are both excellent frameworks with high learning and practical value. I hope you will pay more attention to them.

 

OK. When running this application, you must import all the correct and necessary jar packages and the storage path of all configuration files. One recommended method is to test and use each framework technology in one project before joining our application. That is, let everyone build a complete application environment first. If you encounter any problems or have any good suggestions when doing this small application, you are welcome to leave a message for me. I wish you a pleasant learning experience and daily progress!

 

 

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.