Home > Back-end > Help the solution: the first JSP page jump to other JSP page, the first function on the JSP page how
Help the solution: the first JSP page jump to other JSP page, the first function on the JSP page how
Time:05-11
Recently took over a WEB project, the project for each page jump in the window. The location. The href, such as 1. JSP through the window. The location jump to 2. JSP, I want to in this WEB project to implement a global function, ensure that have an effect on each page, the key question is how to ensure that the same function have an effect on each page, At present there are both considered way: 1, a: In 1. JSP achieve this function, regardless of the back window. The location jump to 2. JSP, (3) the JSP page, and so on, to ensure that 1. The function also can continue to run on the JSP, by this way, it is best not to change the window. The location of the jump, changed all pages after jump way, because all browsers to do the test, an incompatible will destroy, This way, had not thought of solution, and so on BBS Posting Montana for help you
2, the way 2 On all pages are to implement this function, so 1. JSP to jump to 2. After the JSP, this feature in 2. JSP there, this way it looks simple, but the execution has two questions: (1) the equivalent of all pages of this WEB project involves exhaustive, but some pages link to other WEB pages of the project, the project to change other projects page is difficult to do, (2) every page with the same function, how to ensure that the features of temporal relations between multiple pages and unified whole,
I tend to use the implementation way, way for the realization method of a Montana please feel free to comment, many thanks!
CodePudding user response:
Do you want to make sure he should continue to run to get the result? Do not change the jump way can't keep, you can put the operation on the backend to, and then when you are 2. JSP, 3. JSP, returns 1. JSP to send a request to the backend get run results, try this on?