How to make a Registration Page using Struts 2(如何使用 Struts 2 制作注册页面)
问题描述
我一直在尝试制作一个注册页面,该页面将采用 3 个值 ID、NAME、Password.我有一些想法,但我无法完成这个项目.
I have been trying to make a registration page which will take 3 values ID,NAME,Password. I have some ideas in mind but I was unable to make this project.
请有人了解如何使用 Struts 2 制作此注册页面.
Please can somebody through some light on how to make this registration page by using Struts 2.
我试图设计的是首先注册页面将被打开让它成为 index.jsp 然后当用户将执行他/她的条目时如果条目被更新然后返回语句将是成功.
What am trying to design is first the registration page will be open let it be index.jsp after that when the user will do his/her entries if the entries are updated then return statement will be success.
我知道如何创建 index.jsp 视图,但在创建 execute() 方法(Action 类)时有些困惑.
I know how to create view an index.jsp but am having some confusion in creating the execute() method (Action class).
推荐答案
注册页面是使用Struts UI标签制作的.这些标签允许您生成用户所需的 HTML 内容,以便在页面中输入用户名、密码、性别、出生日期等注册详细信息,并将其保存在用户详细信息中.
The registration page is made using Struts UI tags. These tags allows you to generate HTML content required for the user to enter registration details such as user name, password, gender, date of birth into the page and save it in the user details.
您可以按照使用注册页面代码的教程进行操作:Struts 2 UI 标签教程.
You can follow the tutorial that is using code for registration page: Struts 2 UI Tags Tutorial.
Struts 示例将您带入 处理表单 页面.在那里您可以找到来自示例项目的教程.
Struts example brings you into Processing Forms page. There you can find a tutorial from examples project.
Struts2 团队创建了示例项目来帮助您编写代码示例和教程.
这篇关于如何使用 Struts 2 制作注册页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用 Struts 2 制作注册页面
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
