Struts 2 action classes do not require one to provide the implementation of the execute():String function for multiple units of action.

Sometime ago, i saw from an online tutorial asserting an incorrect statement about the workings of Struts 2, and i felt that it was as a result of shallow exposure to a very solid controller framework.

Says the website (source): “Struts 2 actions don’t force you to implement any interface or extends class, it’s only required you to implement anexecute() method” Completely wrong.

Being a Struts2 web application developer for nearly two years, this caught my attention almost immediately. I have since commented on the post itself and hope that the author corrects the assertion immediately (that is without claims or any valid references) before more people are misled.

Please practice responsible journalism.

Share