troubleshooting Question

check if bean exists

Avatar of elschott
elschott asked on
JavaJSP
1 Comment1 Solution1603 ViewsLast Modified:
Hello

I am using a bean as part of my login procedures if the user successfully logins then a loginBean is instantiated and populated with the appropriate data, the rest of my site is a series of jsp's and java servlets. How do I ensure the user has logged in and populated the loginBean before they get to any of the pages below the login page. I assume it involves a redirect and I need to test if the loginBean exists within my session. So if the user calls a page that is below the login page they are redirected to the login page if they have not successfully logged in at this stage. I need to be able to check in servlets and jsp's I think. Any suggestions.

Thanks

Jake
ASKER CERTIFIED SOLUTION
Mick Barry
Java Developer
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros