Multiple windows on Java Web projects

I have an EJB 2.1 project (in fact, it must be migrated to EJB 3.1: -). At present, it only supports one window This means that the user should work on the window This is because variables are used as session variables (last search criteria, last used ID, etc...)

I want to be able to open two or more tabs in Firefox and work in parallel If the user is on the same tab, variables should be reserved only for that tab Only global variables are valid for all tabs

How can I solve this problem Any documentation that understands multiple windows will also be helpful Or welcome any other ideas or experiences about multi - window web projects

Solution

There is no built - in solution to this problem in any browser or EJB I know Other web application frameworks have the concept of Web flow, which is a series of connected operations that can handle multiple flows in different tabs of the same browser, so you may want to start looking

In short, they create their own "cookies" controlled by the application, not the browser itself These "application cookies" are then used to store a large amount of information related to the current operation set, just like a session

These types of things are initiated when the user clicks on the link opened in the "new window" (or tab), which informs the application (through page hit or Ajax call) that a new "work session" is being opened and gets the internal session settings

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>