Hello there, im new to the forum and also new to Struts2.
I am trying to implement Scope Interceptor, let me explain my app.
I want to store user information from DB into session from login window, so i can validate logged user across application.
I have AppUser.class (which is my model class)
I have this struts.xml , where Login page will go to the loginServiceAction.class where i need to Scope Inteceptor to be used and store (after returning response) my property/model "AppUser" into session.
Problem is: Scope interceptor will not store anything into session and will not get that/nothing from it.
Is there some error in my code ?
I did not read all your codes but it looks like you are trying to use a new AppUser object in your loginServiceAction class to check if user is logged in. This will not work since it is initialized to default values. You need to do:
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop