pass parameter from javascript to another jsp
Posted
by gautam
on Stack Overflow
See other posts from Stack Overflow
or by gautam
Published on 2010-03-19T11:04:28Z
Indexed on
2010/03/19
11:11 UTC
Read the original article
Hit count: 233
JavaScript
|jsp
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.
© Stack Overflow or respective owner