A, struts2 execution flow
Second, the architecture diagram
Only need to write code in the yellow part;