Rap entrypoint (s) and Servlet (s) (implement multiple entrypoints) Redirect URL

Source: Internet
Author: User

Rap1.3

 

This article mainly describes how to use entrypoint and Servlet in rap.

 

  • Entrypoint: the entry to the rap application. The extension point is org. Eclipse. Rap. UI. entrypoint.

One rap plug-in can have multiple entrypoints,

Select an extension point as follows:

 

  • Servlet is also required to start entrypoint. You can use org. Eclipse. Rap. UI. branding to set the default entrypoint, for example:

The settings are as follows:

 

  • Start rap. If it is a direct launch application in eclipse, the URL in IE should be: http: // [host]: [port]/[servlet]? Startup = [entrypoint]. For the above instances, the address is http: // locahost: 10086/test? Startup = entrypoint1 where the port number can be preset. It should be noted that the default entrypoint has been set for servlet for test. Therefore, if the rap application has been started, enter http: // locahost: 10086/test: You can also jump to the entrypoint1 application based on the defaultentrypointid settings (as shown in.

In other cases, you can create multiple branding and multiple entrypoints.

 

  • Sometimes setting the default entrypoint cannot meet the flexibility in the IE Address Bar. In this case, address redirection may be required. Therefore, the RAP also provides the corresponding extension point of the redirection path: Org. eclipse. equinox. HTTP. registry. servlets,

The detailed settings are as follows:

Here, alias is the substitution character of [servlet] In the IE address bar, that is, sevlet can be escaped as "/". The real implementation jump must be implemented in the code.

 

Enter

Http: // localhost: 10086/path

==> Redirect to ==>

Http: // localhost: 10086/test? Startup = entrypoint2

 

If alias is set to "/Files", enter

Http: // localhost: 10086/files/path

= Redirect to =>

Http: // localhost: 10086/files/test? Starup = entrypoint2

Finally, entrypoint, branding and servlet can be used together to implement different requirements for IE addresses in Multi-entrypoint applications.

 

For reference only!

 

 

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.