Struts2 is one of the mostly used java framework.Its advantages are
Now coming to insertion on a mysql table with struts2.
- AJAX support
- Easy to integrate
- Easy to modify
- Uses Plain Old Java Objects
- First we have to create the project in netbeans as shown in these screenshots.
- Now create the index.jsp under webpages folder which have a form .
- Then create a new java package under Source packages.
- Then create a java class under the register package.
- Then write this java code in register.java.Dont forget to fill getters and setters.
- Then create the 2 jsp pages that needs to view our results.
- Then change the web.xml,struts.xml files according to your processes.
- Database actions.
Db name-strutslogin
Table name - login
Columns - id,username,password













