如何使用Struts 2.3制作注册页面 [英] How to make a Registration Page using Struts 2.3

查看:61
本文介绍了如何使用Struts 2.3制作注册页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试制作一个注册页面,该页面将包含3个值IDNAMEPassword.我有一些想法,但无法完成这个项目.

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.

这篇关于如何使用Struts 2.3制作注册页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆