My guess is that request.getContextPath() is just an empty string, with causes setLocation to just reload the page. You could instead test using “/” + request.getContextPath() which should properly redirect to the root of the web application context in all cases.
Hi,
I need one help like this.
I want to load MainUI( extends UI) after Login success. Simply I want to load another UI. How to do this. Is it possible…?
Humbly requesting… pls…