| |

VerySource

 Forgot password?
 Register
Search
View: 955|Reply: 5

How to pass parameters between servlets under different tomcat deployment?

[Copy link]

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-13 19:20:01
| Show all posts |Read mode
Ask questions
Reply

Use magic Report

0

Threads

10

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Invalid IP Address

Post time: 2020-1-17 11:27:01
| Show all posts
Access directly with URL
Reply

Use magic Report

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-1-17 12:36:01
| Show all posts
I may not have made it clear. For example, two projects are deployed under the same tomcat. After a project logs in to jump to b, the action is processed and then the jsp of project a is returned. How is the processing result passed? The session obtained from the request is not the same
Reply

Use magic Report

0

Threads

10

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 Invalid IP Address

Post time: 2020-1-17 20:09:02
| Show all posts
Of course, you cannot put the result in the session, it should be possible to put the result in the URL. For example, the result returned after processing in b is result. When jumping to the jsp in the a project, directly put the result in the URL, http: // host: port / a / sample.jsp? Result = result
Reply

Use magic Report

0

Threads

14

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-1-17 22:45:02
| Show all posts
Haha, mark ~!
Reply

Use magic Report

1

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-1-17 23:00:01
| Show all posts
What if the processing result is a collection type? This seems to only work with string types
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list