I am calling a servlet from the Login Page . It does some check . If the check fails , I want a new window to open displaying the Error else if the check passes , the next page is loaded in the same window as the Login . In this case , no new window has to be opened . Can someone tell me how we can open a new window from a servlet ?
Thanks for ur reply. But , my problem is that I want to open the new window from the servlet code itself . So , I cannot use javascript there . So is there any code in Java from which I can open a new window ?