如何使用Struts 2.3制作注册页面
我一直在尝试制作一个注册页面,该页面将包含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制作此注册页面.
Please can somebody through some light on how to make this registration page by using Struts.
要设计的是首先将打开注册页面,将其设置为index.jsp
,然后,如果用户更新条目,则当他/她输入条目时,return语句将成功.我知道如何创建index.jsp
视图,但是在创建execute
方法(Action
类)时有些困惑.
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. 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.