Link to home
Start Free TrialLog in
Avatar of Gangadhara Melukote
Gangadhara MelukoteFlag for United States of America

asked on

Redirect to Login page

This sounds like old question, but I am stuck in resolving the issue for my case.

I am working on very big web application which has more than 20 modules. We kept the header and footer in a sperate module and the header.jsp and footer.jsp are including in all other modules through  jsp:include  tag.

We are maintaining our own user entitlement model and I want to add user Role validation. If the user has roles in our entitlement, then redirect to PageA if not redirect to Login page (PageB).

After adding this piece of code in header.jsp, it is not redirecting to different page which I required. On googgling, found that if we are including any pages using jsp:include the page redirection code in header.jsp will never works.

Can someone please suggest the alternative ideas?
SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial