java - struts2 - How to get username on every page in my web application -
java - struts2 - How to get username on every page in my web application -
i have used interceptors check if user valid & if send him action otherwise deny him doing action.i have added default-stack can occur on every action user invoking. working fine & getting desired results, issue want show username on header of every page. there way can send variable username interceptor every action invoking or straight jsp?
you need persist in way each request can access authenticated object. way store user object in session or @ to the lowest degree store identifier username retrieve user object again.
java struts2
Comments
Post a Comment