Hi I have the following
jsp files...
1. cpanel.jsp
2. adminmenubar.jsp
3. usermenubar.jsp
3. failed.jsp
I have a bean stored in a session scoped variable called userLoginFormBean.
now from the cpanel.jsp, I try to include adminmenubar.jsp or usermenubar.jsp
the above workes... now inside adminmenubar.jsp, I have the following code which checks if the attribute userId is empty or not... I do this to check if the user is still logged in or not...
I try to off the the webserver. This would destroy all my session scoped variable... From the rule in cpnel.jsp, if loginFormBean.groupId == 1 it will include adminmenubar.jsp and if not usermenubar.jsp. In my case, the usermenubar.jsp would be included... I have the same code in usermenubar.jsp similar to adminmenubar.jsp. It goes like this...
I should be redirected to the failed.jsp page... but I'm not... it keeps on showing cpanel.jsp but the includes are not included. Now... What I need to know if this should work under all circumstances? Can I redirect a page from an include file? Thanks!