[英]Spring app Response to non-spring webapp
I have two applications. 我有两个应用程序。 One is a legacy webapp which is servlet-based. 一种是基于Servlet的旧版Web应用程序。 The other is a spring-based webapp. 另一个是基于Spring的Webapp。 The legacy app has a page that has multiple jquery tabs. 旧版应用程序的页面包含多个jquery标签。 I want one of the tabs to act as an iframe to the spring based application. 我希望其中一个标签充当基于Spring的应用程序的iframe。 I have done the following to achieve that: 我已经做到以下几点:
The request handling ideally should do the following: 理想情况下,请求处理应执行以下操作:
1
, 2
and 3
are complete, but I am struggling with 4
and 5
. 1
, 2
和3
是完整的,但我挣扎4
和5
。 How can I send the second key to the legacy system and have the legacy system read it in using a buffered reader
and then open the redirect page in the tab? 如何将第二个密钥发送到旧系统,并让旧系统使用buffered reader
读取它,然后在选项卡中打开重定向页面? Is it even possible in one response? 有可能在一个回应中吗?
I used the @ResponseBody
to return the key, but dont know how to send the redirect? 我使用@ResponseBody
返回密钥,但不知道如何发送重定向? ps feel free to ask me questions if anything is not clear ps随时问我问题是否不清楚
Solved it as follows: 解决方法如下:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.