What Is the Request Processor in Struts?

Java frameworks help the programmer build applications quickly by providing a way to tie together screen designs and business logic. Struts was one of the first of these frameworks and still is widely used.

  1. Definition

    • The RequestProcessor is a central part of Struts. It accepts an action that has been passed to the framework by a "view" (a web page composed with Struts tags). Using configuration files, it associates validation with the data that has been passed to it and an "action." It runs the validation, and initiates and calls the class that performs the action. It then passes on the results of the action to its intended target.

    Overriding

    • Override the RequestProcessor to customize the work flow if necessary. The more complexity in the work flow, the likelier the need for modification.

    ComposableRequestProcessor

    • ComposableRequestProcessor is the replacement for RequestProcessor and was designed to allow simpler customization. Overriding the RequestProcessor could be cumbersome. ComposableRequestProcessor allows the addition of commands through configuration.

Related Searches:

References

Comments

You May Also Like

  • Tutorial on Struts Configuration

    Struts, the open-source framework from Apache, offers integration with Java Beans and Java Server pages to provide a model-view-controller design pattern. Struts...

  • What Is Struts 2.0?

    Struts 2.0 is a framework that allows programmers to build Web applications using Java computer code. The framework streamlines the entire creation...

  • Struts Tutorial for Beginners

    Struts is a framework to develop applications from scratch, for use in the J2EE (Java 2 Enterprise Edition) environment. Struts is a...

  • How to Use Logic Iterate in Struts

    The "Logic Iterate" tag used in Struts is a tag that returns information. By specifying a section to look at, the tag...

  • How to Replace Car Struts

    Replacing car struts is an arduous task. The working environment should always be free of hazard, especially when it involves a vehicle....

  • How to Select Default HTML Struts

    The HTML struts library is utilized for creating dynamic HTML forms and interfaces. HTML struts can also makes use of the HTPP...

  • Servlet vs. Struts

    A servlet is a Java programming language class. A servlet responds to dynamic content like user requests and server requests as they...

  • How to Replace the Shocks and Struts in a Chevy Camaro

    Chevrolet's Camaro is known for its handling and quick acceleration. To keep your Camaro safe and handling like new, replace your shocks...

  • How to Write a Letter of Request

    A letter of request is what you write to ask for information from a company or an individual. A letter of request...

Related Ads

Featured