H5+app front-end background Ajax interaction Summary

Source: Internet
Author: User

Stream application Development

1. The front end is an HTML page written by Hbuilder, and the UI control is MUI;

2. Backstage with eclipse developed by the servlet to do the controller;

3. Ajax with MUI for front and rear interaction.

Choose to run the written mobile app on Android (my phone is Android) in Hbuilder, write the landing page on the front end, use Eclipse to write in the background, adopt the MVC design pattern layering design, including the Userdao layer connecting database and operation database, model layer user, The control layer servlet is named Useraction, and requests from clients are handled by servlet interception, which includes adding users, querying user names for availability, and so on.

For Ajax asynchronous access, you need to explicitly url:ip:port/the background project name/useraction? Action=login,

IP determination: ipconfig

The port number determines:

Write a index.jsp in the background, configure Tomcat, run in the background index.jsp will automatically open the built-in browser, you can see the server port number,

Background Project name:

Cmccdemo

The above key points must be configured, otherwise you will not be able to access the background.

H5+app front-end background Ajax interaction Summary

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.