%--
/**
* @author VaraPrasad
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the Application : loginuser.jsp
* Creation/Modification History :
*
* Vara Prasad 27-Aug-2005 Created
*
* Overview of Application :
*
* This jsp takes groupname and redirects to the corresponding page
* if user belongs to department it takes the department from DepartmentRoot.properties and redirects to
* Corresponding Department Pages
**/
--%>
<%@ page contentType="text/html;charset=windows-1252" %>
<%@ page import="icai.org.login.GroupUser,java.util.Date,icai.org.DeptConn" %>
<%@ page autoFlush="true" %>
<%@ page isErrorPage="false" %>
<%@ page errorPage="includes/problem.jsp" %>
Welcome To ICAI
<%
Date d = new Date();
long l = d.getTime();
response.setDateHeader("Expires",l);
String groupname =(String)session.getAttribute("groupname");
String userid =(String)session.getAttribute("userid");
if(groupname!=null){
if(groupname.equals("STUDENTS")){
response.sendRedirect("/icairoot/students/students_index.jsp");
}
else if(groupname.equals("MEMBERS")){
response.sendRedirect("/icairoot/members/members_index.jsp");
} else if(groupname.equals("ADMINISTRATOR")){
response.sendRedirect("/icairoot/includes/adminpage.jsp");
}else{
DeptConn dc = new DeptConn();
String deptpath=dc.path(groupname);
if(deptpath!=null)
response.sendRedirect(deptpath);
else
response.sendRedirect("/icairoot/und_const.jsp");
}
}
else{
response.sendRedirect("/icairoot/index.jsp");
}
%>