For 2 months. The deepest experience of Java development

Source: Internet
Author: User

In the jquery for the Ajax operation, the feeling of using more, and form forms of processing or very similar, but the implementation of the function is not the same. Learning programming, in fact, is to learn the flow of data processing, that is, the process of running the process, how to get from the foreground, transfer to the server for the corresponding processing, and then return to the relevant display, the process through a number of technical implementation, the completion of the software development, the feeling is very interesting.

The similarities and differences between Ajax and form forms in jquery

1. Forms

The following form has two input fields and a Submit button, and when the form is submitted, the form data is submitted to a page named "form_action.asp":

action="form_action.asp"method= "Get" >

and Ajax: That's the value behind the URL.



3. Is it all through the URL? Key=value&key1=vaule1

4. Background programs are all through
public void doget (HttpServletRequest request, httpservletresponse response) throws Servletexception, IOException {

string UserID = Rquest.getparameter (String) For example: "UserID"
You get this, you can handle it.

——————————————————————————————————————————————————————————————

Java software Development, in the background we can through a variety of frameworks, such as SSH, such as code encapsulation, convenient for us to write Java code, for example, STRUTS,SPRINGMVC the process from the foreground to the action to encapsulate control, So that we only need to do some simple configuration can be achieved; at present, the most work used is, SPRINGMVC in the @requestmapping, This is the only way into the background , such as:

URL:/organziationmanagement/addorderole.go?

Can navigate to addorderole This backend method

But spring has carried on the encapsulation to various object's management, provided the AOP programming way, greatly facilitates us;

At work: You have to look at the organization management is before which class inside, you want to pass the Web-context.xml configuration file

The name of the bean before the class name can be found

Hibernate and Ibatis, however, encapsulate the JDBC code without requiring us to write the duplicated and complex JDBC code each time.

manipulating databases with pure Java code, without those JDBC 3-step operations

The front desk, for the page some effects, verification, etc., we are all done through the JavaScript language, but it is like our Java code, is the most basic of the foreground language, and jquery is to encapsulate the JS code to facilitate the writing of our foreground code, And it has a big advantage to solve the browser compatibility problem, which is one of the most important reasons why we use it.

Ajax in jquery is also the absence of those four-part operation, directly like form form forms




For 2 months. The deepest experience of Java development

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.