Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Assignment No 8

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Assignment no.

Problem Statement: 
Design a login page with entries for name, mobile number email id and login button. Use struts and
perform following validations
a. Validation for correct names
b. Validation for mobile numbers
c. Validation for email id
d. Validation if no entered any value
e. Re-display for wrongly entered values with message
f. Congratulations and welcome page upon successful entries

Objectives:
1. To understand the concept of STRUTS
2. To implement the communication between computing nodes using client side and server side
technologies.
3. To design and implement the web services with content management.

Software and Hardware requirements:


Software (Minimum Requirement:):
Java 1.7 or Higher, Apache Tomcat 7 or higher, Struts API’s, Eclipse IDE.

Theory:
I. STRUTS Framework :  
The frameworks plays a vital role in industries for manageable and well designed application
development as well as enterprise application development. The core of the Struts framework is
a flexible control layer based on standard technologies like Java Servlets, JavaBeans, Resource
Bundles, and XML, as well as various Jakarta Commons packages. Struts encourages application
architectures based on the Model 2 approach, a variation of the classic Model-View-
Controller(MVC).
Struts gives its own particular Controller segment and incorporates with different advancements
to give the Model and the View. For the Model, Struts can collaborate with standard
information get to advances, as JDBC and EJB, and also most any outsider bundles, as Hibernate,
iBATIS, or Object Relational Bridge. For the View, Struts functions admirably with Java Server
Pages, including JSTL and JSF, and in addition Velocity Templates, XSLT, and other introduction
frameworks. The Struts system gives the undetectable underpinnings each expert web
application needs to survive.
Struts causes you make an extensible advancement condition for your application, in view of
distributed guidelines and demonstrated outline designs. ORM remains for Object/Relational
mapping. It is the customized and translucent constancy of items in a Java application in to the
tables of a social database utilizing the metadata that portrays the mapping between the articles
and the database. It works by changing the information starting with one portrayal then onto
the next.
Struts is a framework that advances the utilization of the Model-View-Controller engineering for
planning substantial scale applications. The structure incorporates an arrangement of custom
label libraries and their related Java classes, alongside different utility classes. The most intense
part of the Struts system is its help for making and preparing electronic structures. We will
perceive how this functions later in this section.

Design and Execution Steps:


Step 1) Create the directory structure as

Step 2) Create input page as below.

Step 3) Provide the entry of Controller in (web.xml) file as given above

Step 4) Create the action class (LoginAction.java)

Step 5) Map the request in (struts-config.xml) file and define the view components.

Step 6) Load the jar files

Step 7) start server and deploy the project or create .war file paste it in webapps folder and run

from manager-app.

Conclusion:
In this way, we have successfully designed an application using STRUTS.

You might also like