I have a generalised program for authorization. I have a number of number of activities which needs to be authorised by users with Admin rights.
Thanks in advance,
I think I have an answer to your problem.
While popping up the new window I assume that you are using window.open() with the first parameter being the name of the JSP you are trying to open. With the name of the JSP, in the same parameter pass the query string.
var queryString = "/validate.jsp?userid=" + document.login.userid.value + "&password=" + document.login.pwd.value;
// Here userid and pwd are textfields and password fields
This would open up a new window.
In the validate.jsp, using the request object you can get the values passed. You could do it like --
String UserID = request.getParameter("userid");
String Password = request.getParameter("password");
It works for me. Try it.