Category: Struts 2

Form validation in Struts 2

There are several ways to do server-side validation of your form with Struts 2. We will see how we can use validate() inside your action class to validate form inputs First you can create web project with Struts support I have the user.jsp which is having the HTML form to enter first name and the […]

Read more

Form and Java Model class in Struts 2

When the user submits a form you can bind the form to Java model class in Struct 2. We will see how to do it First we will create the model class User.Java

Then you can create the jsp file to have the form. I am going to create a jsp file names person.jsp […]

Read more