Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
14
rated 0 times [  21] [ 7]  / answers: 1 / hits: 23304  / 15 Years ago, sun, november 22, 2009, 12:00:00

My Web application makes use of Ext JS & Java web technology. Due to the size and complexity of the application, I need to
do a complete refresh of the page (load a different page) when user select some menu from the menu bar. What is the best what to redirect to the required page?



For example, In my main menu, I have two menu Stock & Location. These two menu will take
the user to different JSP files (stockmgt.jsp & locmgt.jsp) with new layouts,menu items etc.



One possibility is to use location.href in the button or menu handler. But if I do this, will I retain the session variables, and other parameters?



What are the best practices in doing these kind of redirect or page refresh?

Thanks in advance for the ideas, comment and suggestions.


More From » java

 Answers
11

location.href will do, unless otherwise if they are on different domain.


[#98253] Thursday, November 19, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bradenc

Total Points: 75
Total Questions: 96
Total Answers: 129

Location: Burundi
Member since Thu, Feb 10, 2022
2 Years ago
bradenc questions
Thu, Sep 2, 21, 00:00, 3 Years ago
Wed, Sep 1, 21, 00:00, 3 Years ago
Wed, May 6, 20, 00:00, 4 Years ago
Tue, Oct 8, 19, 00:00, 5 Years ago
;