I want to pass parameter from a Javascript function to another JSP page. Currently I am doing like this:
function viewapplet(strPerfMonPoint) {
var dateSelected = document.forms[0].hdnDateSelected.value;
document.forms[0].hdnPerfMonPoint.value = strPerfMonPoint;
var win;
win = window.open("jsp/PopUp.jsp?GraphPerfMon="+strPerfMonPoint+"&strDateSelected="+dateSelected, strPerfMonPoint,"width=800,height=625,top=40,left=60 resizable=No");
}
I added hdnPerfMonPoint
hidden variable and tried to acces in PopUp.jsp
using request.getparameter(hdnPerfMonPoint)
but it is giving null.
I want my window.open like:
window.open("jsp/PopUp.jsp", strPerfMonPoint,"width=800,height=625,top=40,left=60 resizable=No");
Please suggest solution.