Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这里的场景是:用户将在我的主 jsp 页面中输入数据。当用户点击提交按钮时,我想在另一个 jsp 页面中向用户显示所有数据并想要确认“这是您输入的数据,请点击确认按钮提交数据,否则单击取消”。任何人都可以在这里帮助我。我们如何获取在主 jsp 页面中输入的所有数据并将其显示在另一个页面上?
创建一个包含您需要的所有字段的表单。提交该表格。将动作设置为目标jsp。在目标 jsp 的请求对象中,您将获得您输入的所有数据。
你可以像这个表单动作一样指定id="login-form" action="Your动作jsp url“
id="login-form"
action="Your
jsp url
有三个选项: