单击提交按钮时控制器中的调用方法?

时间:2022-11-09 01:51:56

I'm quite sure this is possible but I can't find any info on it. Can anyone point me to the right direction please?

我很确定这是可能的,但我找不到任何关于它的信息。有人能指出我正确的方向吗?

2 个解决方案

#1


4  

  • Take a HTML form
  • 获取HTML表单

  • set action to someServlet
  • 将动作设置为someServlet

  • take method = POST
  • take method = POST

  • override doPost() and write your code there
  • 覆盖doPost()并在那里编写代码

See

#2


0  

A very sleek MVC example can be found here. You can download it, read the source code yourself to understand and grasp the concept.

在这里可以找到一个非常时尚的MVC示例。您可以下载它,自己阅读源代码以理解和掌握概念。

#1


4  

  • Take a HTML form
  • 获取HTML表单

  • set action to someServlet
  • 将动作设置为someServlet

  • take method = POST
  • take method = POST

  • override doPost() and write your code there
  • 覆盖doPost()并在那里编写代码

See

#2


0  

A very sleek MVC example can be found here. You can download it, read the source code yourself to understand and grasp the concept.

在这里可以找到一个非常时尚的MVC示例。您可以下载它,自己阅读源代码以理解和掌握概念。