【问题标题】:Getting Name of the form that sent request to the servlet [duplicate]获取向 servlet 发送请求的表单的名称 [重复]
【发布时间】:2012-03-17 17:54:59
【问题描述】:

可能重复:
Is it possible to retrieve the form name from a Java HTTPServletRequest?

我如何获得向 servlet 发送请求的表单的名称,因为我有两个表单,我需要根据它们的名称以不同的方式处理它们?

【问题讨论】:

    标签: forms servlets


    【解决方案1】:

    你不能保持原样。如果需要获取表单名称,则需要将表单名称添加为隐藏输入。详情请见here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-09
      • 1970-01-01
      • 1970-01-01
      • 2020-10-20
      相关资源
      最近更新 更多