当直接按下回车键时,会默认提交表单,会发现表单提交报错,这时候需要,否则会报does not contain handler parameter named 'method'. This may be caused by whitespace in the label text

<html:form styleClass="pure-form pure-form-aligned" 
        action="/paymentScheme.do?action=initPaymentSchemeExamine" method="post">

但是又会发现表单自动提交调用initPaymentSchemeExamine方法,只要  在 html:form标签中添加  onsubmit='return false'   即可,最终如下

<html:form styleClass="pure-form pure-form-aligned" onsubmit='return false'
        action="/paymentScheme.do" method="post">

 

相关文章:

  • 2021-09-05
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-09
  • 2021-06-14
  • 2021-09-26
  • 2022-01-17
  • 2021-11-26
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案