Anmol
Anmol

Reputation: 85

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 throw some light on, how to make this registration page by using Struts 2.

What am trying to design is firstly, to open the registration page, let it be index.jsp, after that the user will do his/her entries, if the entries are updated then return value will be "success".

I know how to create a view index.jsp, but I am having some confusion in creating the execute() method (Action class).

Upvotes: 1

Views: 586

Answers (1)

Roman C
Roman C

Reputation: 1

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.

Upvotes: 2

Related Questions