//jsp页面
function fnc_Check(){
var form = document.MyForm;
if(validateMyForm(form)){ document.MyForm.submit();
}
}
function fnc_Check(){
var form = document.MyForm;
if(validateMyForm(form)){ document.MyForm.submit();
}
}
解决方案 »
- java高手帮帮忙
- 求助:JSF如何实现相互关联的列表
- resin的域名配置
- struts分页
- 大家好!为何LINUX上运不了class!!
- 有人试着写出来让小弟学学吗
- 请教高手: 如果在不重启Tomcat的情况下,用外部的方法对已经运行在Tomcat下的Web Service服务端进行一个事件激活(即传一个参数进去)?
- 如何使用webservice.htc中调用axis的webservice?
- 我想在我的redhat linux3ee 上安装tomcat+apache+oracle10g,我想知道这种多应用的服务器,硬件上配置要什么要求,应该查什么资料呢?
- jsp页面编译不了,以前都可以,今天来了之后就编译不了了
- 100分求解:struts-tiles能不能实现局部刷新功能?
- 一个struts中使用自定义标签的问题
<html:form action="deptMaintAction.do?method=save" onsubmit="return validateDeptForm(this);" >
<html:hidden property="dept.id"/>
<table width="100%" border="0" cellspacing="1" cellpadding="2"
class="rightd">
<tr>
<td colspan="2" class="tdtitle">新建/编辑<bean:message key="dept.label"/></td>
</tr>
<tr>
<td width="111" align="right" class="tdbgcolor1"><bean:message key="dept.bmmc"/></td>
<td align="left" class="tdbgcolor1"><html:text property="dept.bmmc" ></html:text>
</tr>
<tr>
<td align="right" class="tdbgcolor2"><bean:message key="dept.bh"/></td>
<td align="left" class="tdbgcolor2"><html:text property="dept.bh"/></td>
</tr>
<tr>
<td align="right" class="tdbgcolor1"><bean:message key="dept.zi"/></td>
<td align="left" class="tdbgcolor1"><html:text property="dept.zi"/></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="center"><input type="submit" name="Submit"
value="确定" class="mybutton" /> <input
type="submit" name="Submit2" value="返回" class="mybutton" /></td>
</tr>
</table>
</html:form><html:javascript formName="DeptForm"
dynamicJavascript="true"
staticJavascript="false" />
validator.xml<form name="DeptForm">
<field
property="dept.bmmc"
depends="required">
<arg0 key="dept.bmmc"/>
</field >
<field
property="dept.bh"
depends="required,maxlength">
<arg0 key="dept.bh"/>
<arg1 key="${var:maxlength}" resource="false" />
<var>
<var-name>maxlength</var-name>
<var-value>2</var-value>
</var>
</field>
</form>
在<head>之间加上<html:javascript formName="cgsqdForm1" method="validate"/>然后,<html:form action="/cgsqdModAction" onsubmit="return validate(this)" >