DWR框架和spring整合出现的问题
我用的DWR框架和spring整合,验证用户名是否存在,前台提交时总是提示我frontClientSerivce未定义,大家帮忙看下代码!
<?xml version="1.0" encoding="GBK" ? >
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"% >
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"% >
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"% >
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"% >
<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c"% >
<meta http-equiv="Content-Type" content="text/html; charset=GBK" / >
<title >用户注册 </title >
<script language="javascript" src="dwr/engine.js" > </script >
<script language="javascript" src="dwr/util.js" > </script >
<script language="javascript" src="dwr/interface/frontClientService.js" > </script >
<script language="javascript" >
function checkUser()
{
var clientName=document.forms[0].clientName.value;
//alert(clientName);
if(clientName!=null && clientName.length!=""){
frontClientService.findClientByName(clientName,function(list)
{
dwr.util.removeAllRows("msg");
if(list.length <=0)
{
dwr.util.setValue("msg","恭喜您,此用户可以注册!");
}
if(list.length >0)
{
dwr.util.setValue("msg","此用户已经存在!");
}
});
}
}
</script >
</head >
<body >
<div align=center > <i > <font color=red size=2 > <span id="msg" > </span > </font > </i > </div >
<center >
<table width="97%" style="width: 97%" >
<html:form action="/spellCarmgr/frontClientManager/FrontClientAction.do?method=clientRegister" method="post" >
<html:hidden property="methodname" value="clientRegister"/ >
<html:hidden property="status" value="审核"/ >
<tr >
<td bgColor=#f1f1f1 colSpan="3" height="15" > <font color=#ff3300 >>>
用户注册 </font > </td > </tr >
<tr >
<td align="right" style="font-size: 12px; word-break: break-all" >
注册类别: </td >
<td width="185" align="right" style="font-size: 12px; word-break: break-all" colspan="2" align="left" >
<html:radio property="clientIdentity" value="0" onclick="drv_age.style.display= ' ';" >车主会员 </html:radio >
<html:radio property="clientIdentity" value="1" onclick="drv_age.style.display= 'none ';" >搭车会员 </html:radio > * </td >
</tr >
<tr style="padding-top:6px" >
<td width="92" align="right" style="font-size: 12px; word-break: break-all" >
用户名称: </td >
<td width="18" > </td >