View RSS Feed


Apache Struts framework tutorials.

  1. Tag Library Introduction

    by , 07-07-2012 at 07:51 PM
    The programming language objects are created and accessed using action elements in Java Server Pages and the output stream is affected. There are 6 standard actions that are defined in the JSP specification and the JSP compliant implementation must provide these standards.
    The custom actions which are reusable modules are also supported by the JSP technology in addition with standard actions. The custom tag in a JSP page is used to invoke the customer action. The custom tags collection makes ...
  2. Type Conversion in Struts

    by , 07-07-2012 at 07:50 PM
    The protocol treats all the HTTP requests as a String. It may include Boolean, integers, dates, numbers, decimals and everything. According to HTTP protocol, everything is a string. As compared to this approach, the struts class supports the data types and it has properties.
    Different types of converters are used by the struts so that it can perform heavy lifting. For example, in your Action class you have a specific data type like integer; it will be automatically converted into integer ...
  3. Struts2 Localization and internationalization

    by , 07-07-2012 at 07:47 PM
    In order to make products and services compatiable with local cultures and languages, the internationalization process is used. Localization is a process that plans implement products and services and make them adaptable to specific culture and language. The internationalization process is also refered as localization enablement or translation. Internationalization is also abbreviated as i18n.

    • It starts with i.
    • It ends with n
    • It contains 18 characters between ...
  4. Architecture of Struts 2

    by , 07-07-2012 at 07:46 PM
    Struts2 is a MVC/MVC2 framework from a high level view. The following 5 components provide the Struts2 Model View Controller Pattern.

    • Interceptors
    • Actions
    • Value Stack
    • View
    • Results

    In Struts2 the actions take the model role instead of controller so it is little different from the traditional Model view controller framework. But there is always a overlap between the two.

    Name:  1.jpg
Views: 3421
Size:  56.1 KB
  5. Disadvantages of Struts2

    by , 07-07-2012 at 07:44 PM
    Struts2 provides a lot of good features and functionalities but there also few disadvantages of Struts2 in specific environments and conditions. We will discuss the disadvantages of Struts2 in this topic.

    • Bigger Learning Curve: In order to use Struts MVC framework, you must have expertise with JSP, Servlet API and the Struts framework.
    • Poor Documentation: Struts2 offers limited online resources for learning as compared to standard JSP and Servlet API. Also the new user ...
  6. Struts 2 Introduction

    by , 07-07-2012 at 07:43 PM
    Struts2 is a mature and very popular MVC design pattern based web application framework. In Struts2, the complete architecture is rewritten as compared to Struts 1.
    The Struts framework provided the base for WebWork framework and basically it was designed to provide improved and better framework built on top of Struts so that developers can easily develop web applications.

    After a while, Struts community and WebWork framework developed Struts2 framewrok with combine efforts. ...
  7. How to validate form in Struts 2's action

    by , 12-10-2011 at 06:41 AM
    This article will guide you how to validate a form from Strut’s action classes. We are going to develop a simple web application that allows user to enter email address and password to login. The email and password will be validated on the server side, in the action class.
    You are assumed to be familiar with Java web development using Eclipse IDE and understand how a Struts application works at the fundamental level. You also know how to deploy a Java web application on Tomcat server. ...
  8. Building your first Struts 2 application using Eclipse

    by , 12-09-2011 at 05:30 PM
    Struts is one of the most popular web framework for Java. It comes with 2 major branches, Struts 1 and Struts 2. Both implement MVC architecture but Struts 2 is much simpler, easier to build, deploy and maintain than Struts 1.
    This article will guide you through the steps to build a simple Struts 2 application using Eclipse IDE.

    Download Struts 2 and required libraries

    Download latest version of Struts 2 from Download a Release
    Select the full distribution, ...
    Eclipse , Struts