如何使用Struts 2制作注册页面 [英] How to make a Registration Page using 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
,此后,如果用户更新条目,则用户将输入其条目,然后返回return语句.成功.
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).
推荐答案
显然,我是通过从教程的角度学习struts2框架来完成该项目的,这很容易,我只需要构建一个带有execute方法和链接的数据库的action类即可.该执行方法.并在1个jsp页面上将用户和操作的条目接收到操作类.再次感谢.
Apparently I have made the project by learning struts2 framework from tutorials point, it was quite easy I just needed to build an action class with an execute method and database linked to that execute method. And jus 1 jsp page to take entries from user and action to the action class. Thanx again.
这篇关于如何使用Struts 2制作注册页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!