{'fraction_non_alphanumeric': 0.02280501710376283, 'fraction_numerical': 0.0, 'mean_word_length': 5.455882352941177, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Unit Testing and Action-Level Security Solution of Struts Web Applications Based on MVC

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.