Simple Struts Application
1Requried for Struts
Eclipse 3.3 or later
Plugin for eclipse [Link].2.05
2Step by Step to create struts
2.1Create Web_Project
Slelect File->New->[Link] New window, select Dynamic Web Project .
The continue, add import lib of struts into project.
Right click at folder Webcontent in project and select new->other.
We must modify in file [Link] .
Replace “/tags/struts-bean” of <taglib-uri> by value of <tablib-location> in <tablib>
The config a template for struts jsp [Link] Windown->preference
The select Edit.
be replaced by:
2.2Create a Struts JSP
[Link]-Bean
3.1Create Form Bean
This Bean must override 2 method reset( ) and validate( ):
Reset( ) and validate( ) will call before perform execute( ) in LoginAction (action servlet).
Create Action ( Action Servlet):
Then override execute( ) method:
3.2 Congigure Struts_config.xml
Create a Struts Jsp file