The directories and files of a Struts application

By: Gokul Verma  

You'll need to know the directory structure of a Struts application, and what's put in the directories. The "struts-blank" application is well-suited for this presentation, since it contains a minimum number of files:

The Struts directory structure - 

File or Directory name



Contains meta information. Used by utilities etc.


This is where you place you own Java classes.


Contains the messages (fixed texts) of the application. Error messages are also put here.


Contains the Struts servlet, helper classes, taglib code etc.


The Struts tag libraries.


A Struts configuration file. More on this later.


The usual configuration file for the servlet container. More on this later.


The jsp-files (and html-files) may be placed in the root of the application directory. "struts-blank" contains this single jsp-file.

The files and directories in a Struts application -

Most Viewed Articles (in Struts )

7 Best Practices of Struts

FAQ: Why are my checkboxes not being set from ON to OFF?

What is Struts? Which Version of Struts to use?

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

What is a Model View Controller (MVC) Model?

Handling Duplicate Form Submissions in Struts

Origin and Architecture of Struts

Struts and Tiles - Steps to use Struts and Tiles

FAQ: Why was reload removed from Struts (since 1.1)?

What is a Plug-in and how to use Java plug-ins with Struts?

Using Multiple Message Resource Bundles in Struts

ActionErrors and ActionError in Struts

Handling multiple buttons in HTML Form in Struts

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

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

Latest Articles (in Struts)

Comment on this tutorial