Struts 2: Interceptors

I am currently following the tutorial on Struts 2 at​.

I went through the tutorial on Interceptors but I still don’t quite understand the concept fully yet. However, I am now more familiar with using DispatchAction functionality in Struts2. I can put methods such as add, update, delete and execute in one Action file and do the necessary action mapping in the struts.xml file. I also found out that it is much better to use generalized action mapping by using the asterisk and {1} so that I don’t have to map each method to the corresponding action. This is also called Dynamic Method Invocation  using wildcard mapping.

I have also done the tutorial on validation in Struts 2. It is quite simple and straightforward. Another way to do it is by using an XML file but I haven’t made it work just yet (saving it for tomorrow). =)

I have learned quite a bit already and I’m excited to finish all the topics in the tutorial so that I could get my hands dirty building my first mini-project.

I still have to understand more about interceptors though. Hmm. That’s for tomorrow. Time to go home.



Author: Mylene

Disclaimer: My postings reflect my own views and do not necessarily represent the views of my employer, Accenture. I'm proud to be Filipina and a Bisaya. I am dedicated, motivated, and results-driven. I am an Aries. Bullheaded. Stubborn. I am a leader. I am a software engineer. I am a child of God. I am living and loving life! :) Leave a comment and subscribe!

Leave a comment... :)

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s