0

I have a web application built on struts2 and spring2.5. It uses the MVC nature of struts and security, Dependency Injection, AOP from spring.

I have used an aspect for logging operation which runs before any method is called. But by no way I am able to log the logged-in username. What I want is that the username should be logged whenever a method is called along with the method signature and method parameters.

Any help is appreciated..

Soumya
  • 1,833
  • 5
  • 34
  • 45
  • Where username is stored? Show your aspect. – Aleksandr M Oct 30 '14 at 09:25
  • This is StackOverflow, please show executable code, i.e. at least the aspect and a class with method(s) it should be applied to. Optimally, provide an [SSCCE](http://sscce.org/). You will get much better and faster help if you ask more precisely. – kriegaex Oct 30 '14 at 12:51

0 Answers0