Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

integration of struts2 with aop(without spring)

 
usha kotha
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone please help me in integrating struts2 with aop(without using spring) to generate logs.

I would be so pleased if you could post code snippets for integration step by step or a few links which would explain clearly.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you familiar with what AOP is? What do you mean by generate logs? What have you tried so far? Also this forum is for Spring and you have clearly stated in your topic that your post is not Spring related. In order to help you get better responses please read the following:

Show Some Effort
Tell the Details
Carefully Choose One Forum
 
usha kotha
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, am familiar with AOP. What i mean is.........i want to use AOP to generate logs when an exception occurs, while entering or exiting a method...........like generating logs using log4j. Using pointcut expressions, i want to generate logs. But i don't want to use IOC/Dependency injection.

I want to track my struts2 DAOs and helper classes which integrate strut2 with hibernate.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well AOP and DI are two separate things. You can have one without the other. AspectJ is a popular library for AOP. If you google for 'aspectj exception logging' I think you will find that this same question has been answered many times and you will probably find what it is you are looking for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic