Hi,
I am new to
Struts 2 and trying to implement Authentication and Authorization functinality in my sample application just for learning purposes.
But i am confused how to implement this functinality.
Bellow is the steps i have taken to implement the same. functionally my application is working fine. but there must be some easy way to implement the same.
I have one login.jsp which propmts for Login Id and Password from the user.
and index.jsp collects few data like phone no etc. but before user comes to index.jsp user has to be logged in.
so i have written one interceptor for checked the same. before every request goes to the destination.
Bellow is my code.
LoginInterceptor.java
And below is my struts.xml file