日期:2014-05-16 浏览次数:20845 次
var itemname = Trim(document.form.itemname.value);
var xmlhttp = createXMLHTTP();
var rt = null;
var url = "../servlet/SafeCheckItemManage.do?op=namechaxun&itemname=" + itemname;
xmlhttp.open('POST', url, false);
xmlhttp.send(null);
if (xmlhttp.status == 200 ) {
rt = xmlhttp.responseText;
}
String itemname = request.getParameter("itemname");
SafeCheckItemDAO scidao = DAOFactory.getSafeCheckItemDAO();
PrintWriter out = response.getWriter();
boolean b = scidao.getselectitemname(itemname);
out.print(b);