getUserPrincipal on the HttpRequest object will tell you who logged into the web app and made the change. If this isn't the user making the database connection, which obviously it is not, you're going to have to explicitly pass this to the back end by injecting a variable into an HQL query, or writing to a log file directly.
Basically, you've got to explicitly pass this information to the back end.
_________________ Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?" http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials
|