Sessions in struts2 application
There are a few problems with the code you currently have. You should use an Interceptor to enforce that the user is logged in, rather than trying to enforce it in the JSP. JSP should only be for presentation, not for flow control. You should avoid scriptlets (blocks of code) in JSP. That was deprecated … Read more