Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
342 views
in Technique[技术] by (71.8m points)

java - How to make a Registration Page using Struts 2

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.

Please can somebody through some light on how to make this registration page by using Struts 2.

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).

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

You can follow the tutorial that is using code for registration page: Struts 2 UI Tags Tutorial.

Struts example brings you into Processing Forms page. There you can find a tutorial from examples project.

Struts2 team has created examples project to help you with code examples and tutorials.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...