Skip to Main Content
Aspect-Oriented Programming (AOP) is good at solving the difficulty in Object-Oriented Programming (OOP) of crosscutting concerns, and loosens the system from higher standpoints. Based on the characteristics of web application system, this paper introduces the AOP idea into it, and designs a kind of multi-player architecture based on MVC, emphasizes on the analysis of crosscutting concerns in web system, including authorization, exception, logging and time handler. Making use of the AspectJ language, we design implementations to solve these crosscutting concerns to distributed enterprise web-based systems based on J2EE platform. In the end, comparing with OOP, we make a summary of the advantage of AOP, and list some items of most practice with AspectJ.