WebClient UI and Tomcat launcher

Source: Internet
Author: User

WebClient UI

We clicked the Test button in the WebClient UI development tool,

The selected view is opened in the browser in test mode. What's going on behind this? Note the browser address bar of the bspwd_cmp_test, what is this thing? Jerry tends to think of it as the initiator of the CRM WebClient UI component in test mode.

When we open a CRM WebClient UI component in test mode, this component page is actually displayed in an IFRAME, which is implemented in the bspwd_cmp_test mentioned above:

Clicking the test button will embed the page in the IFRAME that is actually being tested in the WebClient UI component. When this iframe is loaded, the JavaScript handler function that executes the OnLoad event binding is executed: startbspapplication.

This function generates HTML source code dynamically for document:

The JavaScript that executes immediately in the page session_single_frame.htm of the initiator bspwd_cmp_test:

The runtime expands as follows:

Tomcat

The first way we deployed Web apps to Tomcat was to first use MAVEN to package the Web project into a war file, and then manually or write scripts to copy the war file into the Tomcat directory.
Now we can use the following plugin in the project Pom.xml file:

<plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.2</version><configuration><path>/jerry</path><port>9090</port><uriEncoding>UTF-8</uriEncoding></configuration></plugin>

Then execute the command at the command line: MVN tomcat7:run

This tomcat7-maven-plugin plugin can be used as a launcher to help us launch tomcat and load the war file,

Then we can access the Web app directly using Http://localhost:9090/jerry:

To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:

WebClient UI and Tomcat launcher

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.