Most importantly Struts 1 is a web framework which is internally implemented using Servlet and JSP technologies.

This web framework is designed by Apache Software Foundation in 2001 keeping in view to reduce the task of the developer and maintenance issue which was much in Servlet.

Struts framework is implemented based
     -> MVC Architecture
     -> Front Controller Design Pattern
     -> Servlet & JSP.

Struts cover up the Controller and Presentation layer. In Controller layer internally Servlet is implemented using the Front Controller design pattern and for Presentation layer internally JSP is implemented with some tld files, by which developer can use some pre-implemented tags instead of writing java code in jsp page and hence reduce the java codes in jsp pages at the result enhance the maintenance issues. 

Struts Version

There are two versions released by Apache i.e
1. Struts 1.x  ( x = 0, 1, 2, 3)
2. Struts 2.0

Required jars of Struts 1 

There are 10 jars implemented by the Apache . They are :-

1.  commons-beanutils
2.  commons-collections
3.  commons-digester
4.  commons-fileupload
5.  commons-lang
6.  commons-logging
7.  commons-validator
8.  jakarta-oro
9.  struts
10. struts-legacy

And one more java we need to of servlet-api jar implemented by the web server vendors i.e
servlet-api .

Required Xml Files 

1. web.xml
2. struts-config.xml

Note: In struts-config.xml we are configuring form beans and action classes using form-beans and action-mapping tags respectively. 

In we.xml we are configuring the ActionServlet class which is implemented using the Front-controller design at the start-up of server and configuring struts-config.xml as the inti-param with the fixed inti-param name i.e config

* ActionServlet class is implemented by the Apache which is available in the org.apache.struts.action package.

Related Posts:

  • Implementing execute() with HTTP request in Struts We can write our own Action class using Struts framework but need to extends Action class of org.apache.struts.action package and need to override execute() method which return the ActionForward class object and which must… Read More
  • First Struts 1 Example Using Eclipse Steps to follow for developing Struts Application using Eclipse :- We must have to follow some of the basic steps to develop any struts application using the Eclipse IDE. 1. Create Dynamic Web Project. 2. Copy all the… Read More
  • How Request Handled By ActionServlet ? All the Request by the client are get processed by the ActionServlet only then get forwarded to the Request Processor. ActionServlet is a single Servlet designed by the Apache using Front Controller Design Pattern. It fo… Read More
  • Configuring the ActionServlet in web.xml As ActionServlet is simple Servlet class only but designed using the Front Controller Design Patern so it must be configured in the web.xml file at the container itself only, so that every request must be followed by Action… Read More
  • What Happen after Container start-up in Struts based Application Following task are performed at the Container start-up in Struts based Application. They are : 1. Container make sure about the web configuration file i.e web.xml whether is available or not. 2. If not available then C… Read More

2 comments:

Ads 468x60px

.

Ads

.

Featured Posts

Popular Posts

Like Us On FaceBook

Total Pageviews

201978

Online Members

Live Traffic