I needed a help in writing the code for log in and log out operations in struts2 using interceptors.
1. A user should log in with user credentials, if it is passed then it should show success page with log in entry time(that is time should be displayed).
2. same as above for failure page.
3.when user logs out ,the time should be displayed when he logs out.
the above points should be stored in database, in tables given below.
for example in user table following are the fields
username - john
We'd love to help you, but you need to do your own work. Do you know how to use Struts? If not, you can start here. Do you know how to access a database from Java? If not, you can start here.
If you have mastered those tasks, maybe you need to be more specific with your question.