add the support of struts and spring