Introduction to Hocate Ajax Framework

Source: Internet
Author: User
The Hocate Ajax framework, drawing on the design of many frameworks, draws on the advantages of each framework, discarding some of the inconvenience of manipulation and coding, and is designed to provide an AJAX framework that is easy and fast to encode.

1 automatic mapping of Java objects to JSON objects

2 objects are automatically json and can be called directly in the page

3 maps Various methods in Java to control which methods do not map those methods

4 The method of the mapped JSON object is completely the way of the JS object.

For example: There is an object Tempobj he has many methods one is the Showteam () method, then in the browser can be directly through the hocate Ajax command or tempobj a JS instance and through the Tempobj.showteam () way to call. If Showteam has a return value, it provides a 2-way fetch and is obtained in asynchronous mode via a callback function, which can be obtained directly from the return value of Showteam () in synchronous mode.

5 without introducing an object definition class through an HTML tag, you can get an empty JSON object from the Java cashing map directly via the Getnewinstance () method

6 higher execution efficiency, direct Java object Mapping of JSON, so that the client does not have to do XML parsing operations, in large data transmission with high efficiency, while reducing the flow of sockets

7 easy to get objects in the servlet can get objects in the server through the GetObject () method

8 can submit a valid Java object's JSON class to the server, and this valid Javajson class can be obtained by means of the getnewinstance () method so that there is no need to fret about the object's conformance to the definition

9 methods in JSON in the Java map, with the number of parameters and the type of parameter check, if not conforming to the parameter type and quantity will not be committed to the server.

10 An error is returned for processing requests that are not submitted for this framework. Simple security controls

Download Address: Http://www.hocate.org/info.hct?pageName=download
Demo Address: http://www.hocate.org/ajaxdemo/
Document Address: Http://www.hocate.org/minfo/projectview.hct?id=0
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.