This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to add href in jsp page to navigate to another URL from first jsp page, this second page will get opened as new window.
However my both jsp pages need user to enter different credentials.
When user logs in to first page by entering user/pwd details and navigate to another page using link which is added as href in my first page, the new window gets opened by asking user for another credentials of that second page.
When user enters another credentilas and try to access the first page again, then again user needs to enter user/pwd details, which I want to avoid , can you please suggest on this.
Do you mean the credentials entered in 2nd page will be used in first page when the user navigates back from 2nd to 1st page?
Joined: Apr 10, 2013
I meant it is trying to use session created after entering credentials used in second page and try to map that session with first page session, and it fails in that because both pages uses different credentials. Hence when I try to access first page then it again ask to enter credentials which it should not ask. Because once both pages are opened in different window so both pages should be accessible simultaniosly without any problem.
My problem is that after opening second page in new window, I can not access first page without entering its credentials again.
So far what I could understand is you have different credentials for two different pages, and when the user navigates back to the first page from 2nd page, the first page looses the credentials entered for it and asks for the credentials again. Please correct me if I am wrong.
Joined: Apr 10, 2013
Yes, thats correct but partially, we hv different credentials for two diff. pages.
Only thing is that there is no any link for navigating back from second page to first page. Because I am using href and having link to go to second page, once clicked on that it will get opened in new window and I can see both the windows (pages) opened.