Js openWindow () pops up a new window and parameters passed

to openWindow () in the parameters

var ids = $("#ids").val();
var xcbh = _grid.getRowsValues(ids, "TYZJKXC_ID");
openWindow(ids,xcbh);

​

openwindow () method

function openWindow (ids, xcbh) {
Debugger;
Var options = {
Modal : true,
Title : "log",
Collapsible : false,
Minimizable : false,
Maximizable : false,
Closable : true,
Closed : false
};
Var uid = "self_card_";
Options["id"] = uid;
winFormDesigner = UIFactory.getUI(uid);
If(!winFormDesigner){
winFormDesigner = UIFactory.create(xpad.ui.Window, options);
}
Var root = jQuery("body");
Var offset = root.offset();
Var winleft = 0;
Var wintop = 0;
Var newSize = {};
newSize["left"] = 0;
newSize["top"] = 0;
newSize["width"] = jQuery("body").width();
newSize["height"] = jQuery("body").height();
winFormDesigner.window("resize", newSize);
setTimeout(function(){
If(ids==""){
winFormDesigner.loadURL(Leopard.getContextPath() + "/platform/views/cusviews/JKJL_VIEWS/tyzjkjf.jsp?isRead=true");
}else{
winFormDesigner.loadURL(Leopard.getContextPath() + "/platform/views/cusviews/JKJL_VIEWS/tyzjkjf.jsp?ids="+ids+"&xcbh="+xcbh);
}

}, 0);
}

jsp page to get the value

 <input id="ids" type="hidden" value="<%=request.getParameter("ids") %>"/>
<input id="xcbh" type="hidden" value="<%=request.getParameter("xcbh") %>"/>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<input id="root" type="hidden" value="${ctx }"/>

js to get the value of the page

var root = null;
Var ids = null;
Var xcbh = null;


$(document).ready(function() {
Root = $("#root").val();
Ids = $("#ids").val();
Xcbh = $("#xcbh").val();

Initpage();
});

Function initpage(){
Xctyz();
}

Function xctyz(){
Param = {"xcbh":xcbh,"ids":ids}
}

    $.ajax({
        Url:root + "/Addxctyz",
        Data:param,
        Type:"post",
        dataType: "json",
        Success:function(data){
            Alert ("save success");
        },
        Error:function(){
        Alert ("The server is busy, please try again later");
        }
    })

Backstage receiving parameters

	@SuppressWarnings("unchecked")
	@RequestMapping("/Addxctyz")
	@ResponseBody
	public Boolean Addxctyz(HttpServletRequest request, HttpServletResponse response,String requestParam){
		String xcbh = request.getParameter("xcbh");
		String ids = request.getParameter("ids");
}