I am calling a servlet with params
window.location.href = "/csm/csminfo.jsp?CFG_ID="+cfgid+"&path="+path;
In the other csminfo on body load i am calling a function to retrieve these params
<body onload="getConfigDetails(<%= request.getParameter("CFG_ID") %>,<%= request.getParameter("path") %>)">
JS
function getConfigDetails(cfgid,path)
{
alert(cfgid+","+path);
}
But no alert gets popped up, what is the problem here?
I am using firefox, using error console i got this error

You didn’t quote the strings properly:
Some other issues:
JSP scriptlets are an old, ugly way of doing things, and really have no place in new code. You should look for resources to learn about JSTL:
Whether you use JSTL or scriptlets, values you pull from the HTTP parameters and inject into your page source should be run through an HTML escape mechanism. In JSTL, that’d look like this: