The MVC design pattern is very useful for architecting Web applications, which encourages developers to partition the applications as early as in the design phase. Nowadays, Struts Web applications based on MVC have become more and more popular in various fields, the unit testing and action-level security are the most important method for guaranteeing the applications quality.In this paper, we present a systematic solution for unit testing and action-level security of Struts Web applications. In the solution, we test the applications from model-view-controller (MVC) respectively, and secure Struts applications by different access control implementations. Lastly, an actual applied example is employed to illustrate the testing solution, verifies the effectiveness of the solution.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.