First of all, you must specify the registered user type, for example, admin or user at login time. if the registered user type is admin, then pass the url parameter, for example userType='ADMIN' or userType='USER' , and check the header.jsp page, if userType='ADMIN' load 2 tabs, otherwise one tab.
source share