I want to access Javascript variables in JSP code. How can I do that?
function call() { var name="xyz"; window.location.replace=("a.jsp?m="+name); } String name=request.getParameter("name"); if(name!=null){ out.println(name); }