0% found this document useful (0 votes)
3 views11 pages

Step-by-Step Struts Application Guide

The document outlines the requirements and steps to create a simple Struts application using Eclipse. It details the creation of a Dynamic Web Project, the configuration of the web.xml file, and the setup of a Struts JSP file along with the creation of a Form Bean and Action Servlet. Additionally, it mentions the need to override specific methods in the Form Bean and Action Servlet for proper functionality.

Uploaded by

anhld.learning
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views11 pages

Step-by-Step Struts Application Guide

The document outlines the requirements and steps to create a simple Struts application using Eclipse. It details the creation of a Dynamic Web Project, the configuration of the web.xml file, and the setup of a Struts JSP file along with the creation of a Form Bean and Action Servlet. Additionally, it mentions the need to override specific methods in the Form Bean and Action Servlet for proper functionality.

Uploaded by

anhld.learning
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

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

You might also like