Programming Tutorials

Struts Tutorials

21. Tutorial on Struts Configuration File - struts-config.xml in Struts - from the book: Struts Survival Guide. Basics to Best Practices

By: Authors: Shenoy S. Mallya N. : 2007-10-01

Description: The configurable controller is the answer to the Fat controller problem. In a Fat Controller, the programmers can code "if" blocks on need basis. Not so with the configurable controllers. The expressive and configuration capability is limited to what the built-in controller can support. In Struts, the built-in controller supports a variety of cases that can arise while developing web applications. It even provides points to extend the configuration capabilities. These points known as Extension points, take the configurationcapability to the next dimension. In this tutorial, we will just look at the normal facilities offered by the strutsconfig.xml.


22. ActionErrors and ActionError in Struts

By: Abinaya : 2007-10-01

Description: Struts request handling lifecycle as a happy day scenario is from the point the user submits an html form till the user sees the next page. In reality, users of your web application may submit incorrect data or sometimes no data at all. You have to catch these as close to the user interface as possible, rather than waiting for the middle tier or the database to tell you that a column cannot be inserted in the database because it was expecting a non-null value. There are two consequences of such programming practice.


23. Writing the first Struts application

By: Norman Chap : 2007-09-22

Description: Let's start with developing your first Struts application. Here are the steps involved in creating the Struts application.


24. Use of {0} is required and Accessing resource bundles programmatically in Struts

By: Manoj Kumar : 2007-09-22

Description: Between messages "First Name is Required" and "Last Name is Required", only the field name changes. We can reuse the message as {0} is required. {0} is replaced with the display name for the field at runtime.


25. Use ImageButtonBean for Image based Form Submits in Struts

By: Lakshmi : 2007-09-22

Description: Whenever a form is submitted via , two request parameters save.x and save.y – corresponding to x and y coordinates are submitted. We don't worry about the exact value of the coordinates since we are not using mage maps. Instead the mere presence of save.x and/or save.y indicates that the form was submitted via the save image button. We combine this concept with Struts support for nested properties:


26. Using Checkbox & Radio Tags, html:select, html:options in Struts Forms

By: Kamini : 2007-09-22

Description: This tutorial shows how to use Checkbox, radio buttons, select and options while using forms in Struts applications.


27. Using Multiple Message Resource Bundles in Struts

By: Jagan : 2007-09-22

Description: We will use a different message resource bundle to store information about images.


28. Using Multibox in Struts

By: Ivan Lim : 2007-09-22

Description: Multibox is a collection of checkbox. When a single checkbox exists, it should be mapped to a Boolean. Such condition does not apply to collection of checkboxes. Here we map it to a String array


29. Creating Struts Modules

By: Henry : 2007-09-22

Description: The objective of this tutorial is to teach how to create Struts application modules and break monolithic struts module into pieces


30. Struts and Tiles - Steps to use Struts and Tiles

By: Grenfel : 2007-09-22

Description: This tutorial shows the steps to use Struts and Tiles