一个form,一个action,没有问题,一个form,两个submit,两个action,就在获取表单数据时出错了
解决方案 »
- 定时器 销毁session non-serializable app specific session data : {} serializable app
- 请教一个简单的struts初级配置问题?
- 用myeclipse整合spring,hibernate的简单问题
- 在eclipse中启动JBoss报错!
- 请高手帮帮忙,在tomcat里,我有一个工程在webapps,目录下,webcome(急)
- 100分求救!!!mysql中文处理问题,我快晕死了!!只要能解决分值可再加
- TOMCAT部署WEB应用问题!
- 读取XML文件,并将数据导人到数据库---用哪种技术好?
- jbuilder7+jboss的配置问题?
- 100在线等待…………
- struts bean:write标签的fomat属性详解?使用这个标签时,如何截取定长字符串!
- 求在TOMCAT5下面最简单的一个SERVLET实现
<html:submit property="method" disabled="true">
//button1
</html:submit>
<html:submit property="method" disabled="true">
//button2
</html:submit>
to zhangzhenyi(老傻) :让action继承DispatchAction不太懂,具体怎么做,请说说
<form action="" name="fm1" method="POST">
<input type="botton" name="store" value="保存" onclick=sub('store')/>
<input type="botton" name="del" value="删除" onclick=sub('del')/>
</form>
你写的代码也有问题,sub()里写了form.submit(),而在表单的onSubmit()里,你又写了sub(name),这种调用方法但然出问题,
新的一天,希望能解决这个问题,然后结帖
<input type="botton" name="store" value="保存" onclick=sub('store')/>
<input type="botton" name="del" value="删除" onclick=sub('del')/>
</form>
uping