Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of Web Application Integration

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about how to solve the problem of Web application integration. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

Two Web applications are deployed on two machines, and An application needs to access the URL of B application. In order to ensure that URL will not be easily accessed by any user, it is necessary to add filter to the B application to intercept requests and verify permissions. The URL of App An appears to the user as a URL of the intermediate jump page. On this middle page, add the value of hidden and verify the value on the filter side of the B application. The code is as follows:

Html code

Function init () {document.getElementById ('myForm') .action = "http://localhost:8080/ext2.2/Filter.jsp" document.getElementById (' myForm') .submit ();}

This is the filter page, which can actually be the real filter filter.

The intermediate page is submitted by post, and the user cannot see the submitted hidden in url.

The action of the form of the intermediate page can be obtained using request.getParamter ()

Of course, value can use some encryption algorithms for encryption.

Original

After reading the above, do you have any further understanding of how to solve the problem of Web application integration? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report