aspose file tools*
The moose likes Other Application Frameworks and the fly likes integration of struts2 with aop(without spring) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "integration of struts2 with aop(without spring)" Watch "integration of struts2 with aop(without spring)" New topic
Author

integration of struts2 with aop(without spring)

usha kotha
Ranch Hand

Joined: Apr 18, 2012
Posts: 33
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

Joined: Mar 07, 2010
Posts: 1632
    
    7

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


[How To Ask Questions][Read before you PM me]
usha kotha
Ranch Hand

Joined: Apr 18, 2012
Posts: 33
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

Joined: Mar 07, 2010
Posts: 1632
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: integration of struts2 with aop(without spring)
 
Similar Threads
Struts2 with Spring AOP
Spring AOP / Spring AOP + AspectJ ?
Struts2 and Spring integration
Integrating Struts2 with Hibernate
struts2 Vs spring mvc