Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...