Okay, so today I wanted to mess around with struts on my Mac. It’s something I’ve been meaning to get to, and I finally had some free time. Here’s how it all went down, step by step.

First Steps: Getting Everything Ready
First things first, I needed to make sure I had everything installed. I already had Java on my machine (thank goodness!), but I double-checked the version just in case. You know how it is, gotta have the right version or things get weird.
I fired up the terminal and typed in:
java -version
Yep, all good there. Next up, I needed to grab the Struts framework itself.
Downloading and Setting Up
I grabbed the latest version of the binary and unzipped that bad boy. I put it in a folder that makes sense to me — somewhere easy to find later.
Creating a Basic Project
Now for the fun part – actually building something! I created a new directory for my test project. Nothing fancy, just a simple “Hello, World!” type thing to make sure everything was working.

Made a new folder:
- src: Where I can put my Java codes.
- WebContent:
- WEB-INF:Created a ‘lib’ folder here to hold all the Struts libraries.
Configuration Time
This is where it can get a little tricky. I needed to set up a few configuration files to tell Struts what’s what.
- : The main configuration file and set up some basic actions.
- : in the WEB-INF folder, I also set up a basic * file to configure the Struts filter.
- : Finally, create a simple * file in the WebContent folder.
Copying Libraries
Remember that ‘lib’ folder I talked about earlier? Time to fill it up! I went into the Struts distribution I downloaded and copied all the necessary JAR files into my project’s ‘lib’ folder. Easy peasy.
Running the Thing!
And here it is, all the files are ready and all the required library have copied already, now is the time to run it.
Reflections
It was a good learning experience, setting everything up from scratch.I feel like I have a much better grasp on how it all fits together now.
