original version integrated as dynamic web project
authorfelix <felix@zottel>
Mon, 23 Aug 2010 17:08:01 +0000 (19:08 +0200)
committerfelix <felix@zottel>
Mon, 23 Aug 2010 17:08:01 +0000 (19:08 +0200)
16 files changed:
.classpath [new file with mode: 0644]
.project [new file with mode: 0644]
.settings/org.eclipse.jdt.core.prefs [new file with mode: 0644]
.settings/org.eclipse.jst.common.project.facet.core.prefs [new file with mode: 0644]
.settings/org.eclipse.wst.common.component [new file with mode: 0644]
.settings/org.eclipse.wst.common.project.facet.core.xml [new file with mode: 0644]
WebContent/META-INF/MANIFEST.MF [new file with mode: 0644]
WebContent/WEB-INF/web.xml [new file with mode: 0644]
WebContent/index.jsp [new file with mode: 0644]
WebContent/main.jsp [new file with mode: 0644]
WebContent/menu.jsp [new file with mode: 0644]
src/org/mcb/services/connectionmanager.java [new file with mode: 0644]
src/org/mcb/services/loginmanager.java [new file with mode: 0644]
src/org/mcb/services/passwordservices.java [new file with mode: 0644]
src/org/mcb/services/udac.java [new file with mode: 0644]
src/org/mcb/services/userbean.java [new file with mode: 0644]

diff --git a/.classpath b/.classpath
new file mode 100644 (file)
index 0000000..ba577ab
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+       <classpathentry kind="src" path="src"/>
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0.29"/>
+       <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+       <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+       <classpathentry kind="output" path="build/classes"/>
+</classpath>
diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..a559083
--- /dev/null
+++ b/.project
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>problems</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.wst.common.project.facet.core.builder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.wst.validation.validationbuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+               <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+       </natures>
+</projectDescription>
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644 (file)
index 0000000..d0b253b
--- /dev/null
@@ -0,0 +1,7 @@
+#Mon Aug 23 19:04:21 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
diff --git a/.settings/org.eclipse.jst.common.project.facet.core.prefs b/.settings/org.eclipse.jst.common.project.facet.core.prefs
new file mode 100644 (file)
index 0000000..7d33be9
--- /dev/null
@@ -0,0 +1,4 @@
+#Mon Aug 23 19:04:25 CEST 2010
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER/owners=jst.java\:6.0
+classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ v6.0.29/owners=jst.web\:2.5
+eclipse.preferences.version=1
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
new file mode 100644 (file)
index 0000000..16d3ecb
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+    <wb-module deploy-name="problems">
+        <wb-resource deploy-path="/" source-path="/WebContent"/>
+        <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+        <property name="context-root" value="problems"/>
+        <property name="java-output-path" value="build/classes"/>
+    </wb-module>
+</project-modules>
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
new file mode 100644 (file)
index 0000000..73dde69
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <runtime name="Apache Tomcat v6.0.29"/>
+  <fixed facet="jst.java"/>
+  <fixed facet="jst.web"/>
+  <installed facet="jst.java" version="6.0"/>
+  <installed facet="jst.web" version="2.5"/>
+</faceted-project>
diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..5e94951
--- /dev/null
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0\r
+Class-Path: \r
+\r
diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml
new file mode 100644 (file)
index 0000000..5bb1399
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+  <display-name>problems</display-name>
+  <welcome-file-list>
+    <welcome-file>index.html</welcome-file>
+    <welcome-file>index.htm</welcome-file>
+    <welcome-file>index.jsp</welcome-file>
+    <welcome-file>default.html</welcome-file>
+    <welcome-file>default.htm</welcome-file>
+    <welcome-file>default.jsp</welcome-file>
+  </welcome-file-list>
+</web-app>
\ No newline at end of file
diff --git a/WebContent/index.jsp b/WebContent/index.jsp
new file mode 100644 (file)
index 0000000..4c97960
--- /dev/null
@@ -0,0 +1,123 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\r
+<%@ page language="java" session="true" %>\r
+<%@ page language="java" buffer="500kb" autoFlush="false"%>\r
+<%@ page import = "java.io.*" %>\r
+<%@ page import = "java.sql.*" %>\r
+<%@ page import = "java.util.*" %>\r
+<%@ page import = "java.util.Calendar" %>\r
+<%@ page import = "org.mcb.services.*" %>\r
+<%@ include file = "db/dbcon.jsp" %>\r
+<%@ include file = "//procs/audit.jsp" %>\r
+<html>\r
+<head>\r
+<title>Smart Card Generation Application</title>\r
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
+<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />\r
+<meta HTTP-EQUIV="Expires" CONTENT="-1" />\r
+</head>\r
+<SCRIPT language="JavaScript">\r
+function OnSubmitForm(){\r
+  if(login_form.txt_userid.value==""){\r
+       alert("Please Enter User ID.");\r
+       return false;\r
+  }\r
+  if(login_form.txt_pass.value==""){\r
+       alert("Please Enter Password.");\r
+       return false;\r
+  }\r
+}\r
+</SCRIPT>\r
+<body>\r
+<table width="100%" border="0">\r
+  <tr> \r
+    <td width="2%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="39%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="22%">&nbsp;</td>\r
+    <td width="11%">&nbsp;</td>\r
+    <td width="18%">&nbsp;</td>\r
+  </tr>\r
+  <tr> \r
+    <td width="2%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td colspan="5"><img src="images/header.gif" width="515" height="92"></td>\r
+    <td width="11%">&nbsp;</td>\r
+    <td width="18%">&nbsp;</td>\r
+  </tr>\r
+  <% //out.println(connection); %>\r
+  <tr> \r
+    <td colspan="5"><div align="center"><img src="images/splash.gif" width="566" height="386"></div></td>\r
+    <td colspan="3" background="images/login_box.gif">\r
+       <form name="login_form" method="post" action="loginmanager" onSubmit="return OnSubmitForm();">\r
+        <table width="60%" border="0" align="center">\r
+          <tr>\r
+            <td colspan="3">\r
+            <% if(request.getParameter("user")!=null){ %>\r
+                <strong><font color="#FF0000" size="2" face="Courier New, Courier, mono">Login Unsuccessfull: Either Login credentials are in-valid or account has been locked. </font></strong>\r
+            <%} %>\r
+            </td>\r
+          </tr>\r
+          <tr> \r
+            <td colspan="3"><font color="#FFFFFF" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>Login</strong></font></td>\r
+          </tr>\r
+          <tr> \r
+            <td width="33%"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>User \r
+              Id</strong></font></td>\r
+            <td width="33%">&nbsp;</td>\r
+            <td width="34%">&nbsp;</td>\r
+          </tr>\r
+          <tr> \r
+            <td colspan="3"> <div align="left"> \r
+                <input name="txt_userid" type="text" id="txt_userid" size="50" maxlength="25">\r
+              </div></td>\r
+          </tr>\r
+          <tr> \r
+            <td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Password</strong></font></td>\r
+            <td>&nbsp;</td>\r
+            <td>&nbsp;</td>\r
+          </tr>\r
+          <tr> \r
+            <td colspan="3"><input name="txt_pass" type="password" id="txt_pass" size="50" maxlength="25"></td>\r
+          </tr>\r
+          <tr> \r
+            <td>&nbsp;</td>\r
+            <td>&nbsp;</td>\r
+            <td><div align="right"> \r
+                <input name="btn_submit" type="submit" id="btn_submit" value="Login &gt;&gt;">\r
+              </div></td>\r
+          </tr>\r
+        </table>\r
+      </form></td>\r
+    <td width="18%">&nbsp;</td>\r
+  </tr>\r
+  <tr> \r
+    <td width="2%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="39%">&nbsp;</td>\r
+    <td width="2%">&nbsp;</td>\r
+    <td width="22%">&nbsp;</td>\r
+    <td width="11%">&nbsp;</td>\r
+    <td width="18%">&nbsp;</td>\r
+  </tr>\r
+  <tr> \r
+    <td colspan="9"><div align="center"><img src="images/footer.gif" width="993" height="56"></div></td>\r
+  </tr>\r
+  <tr> \r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+    <td>&nbsp;</td>\r
+  </tr>\r
+</table>\r
+</body>\r
+</html>\r
diff --git a/WebContent/main.jsp b/WebContent/main.jsp
new file mode 100644 (file)
index 0000000..f361bc9
--- /dev/null
@@ -0,0 +1,48 @@
+<%-- 
+    Document   : main
+    Created on : Jul 28, 2010, 11:06:45 AM
+    Author     : yawar.saeed
+--%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<%@ page language="java" %>
+<%@ page import = "java.io.*" %>
+<%@ page import="java.sql.*" %>
+<%@ page import = "org.mcb.services.*" %>
+<%@ page language="java" session="true" %>
+<%@ page buffer="32kb" %>
+<html>
+<head>
+<title>Smart Card Generation Application</title>
+<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
+<meta HTTP-EQUIV="Expires" CONTENT="-1" />
+<link rel="stylesheet" type="text/css" href="css/default.css">
+</head>
+<%
+userbean usr        = (userbean) session.getAttribute("user");
+String login_path   = request.getContextPath()+"/index.jsp";
+if( usr == null ){
+    session.invalidate();
+    response.sendRedirect(response.encodeRedirectURL(login_path));
+}
+else{%>
+<body>
+<table width="100%" border="0" cellspacing="1" cellpadding="1">
+  <tr>
+    <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
+        <tr>
+          <td>
+            <jsp:include page= "menu.jsp" />
+          </td>
+        </tr>
+        <tr>
+            <td>
+               
+            </td>
+        </tr>
+      </table></td>
+  </tr>
+</table>
+</body>
+<% } %>
+
+</html>
\ No newline at end of file
diff --git a/WebContent/menu.jsp b/WebContent/menu.jsp
new file mode 100644 (file)
index 0000000..f94f08f
--- /dev/null
@@ -0,0 +1,637 @@
+<%-- \r
+    Document   : menu\r
+    Created on : Jul 28, 2010, 2:42:16 PM\r
+    Author     : yawar.saeed\r
+--%>\r
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">\r
+<%@ page import = "org.mcb.services.*" %>\r
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
+<head>\r
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
+<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />\r
+<meta HTTP-EQUIV="Expires" CONTENT="-1" />\r
+<title>MCB Smart Card Generation Application</title>\r
+<%\r
+String script_path  = request.getContextPath()+"/scripts/stuhover.js";\r
+String css_path     = request.getContextPath()+"/css/pro_dropdown_2.css";\r
+String login_path   = request.getContextPath()+"/index.jsp";\r
+%>\r
+<link rel="stylesheet" type="text/css" href="<%=css_path %>" />\r
+<script src="<%=script_path%>" type="text/javascript"></script>\r
+</head>\r
+<% userbean usr        = (userbean) session.getAttribute("user");\r
+//if( (session.getAttribute("user_id") == null) | (session.getAttribute("user_id") == "" ) ){\r
+if( usr == null ){\r
+       session.invalidate(); //request.getContextPath()+"/Index.jsp"\r
+//     response.sendRedirect(login_path);\r
+        response.sendRedirect(response.encodeRedirectURL(login_path));\r
+}else{\r
+/*     String user_id      = (String) session.getAttribute("user_id");\r
+       String user_name    = (String) session.getAttribute("user_name");\r
+       //String user_pass    = (String) session.getAttribute("user_pass");\r
+       String role_id      = (String) session.getAttribute("role_id");\r
+       String role_name    = (String) session.getAttribute("role_desc");\r
+       String last_login   = (String) session.getAttribute("last_login");\r
+       // userbean usr        = (userbean) session.getAttribute("user");\r
+       //out.println("object value: "+usr.getName());\r
+ */\r
+%>\r
+<body>\r
+<span class="preload1"></span>\r
+<span class="preload2"></span>\r
+<table width="100%" border="0" cellspacing="0" cellpadding="0">\r
+  <tr>\r
+    <td></td>\r
+  </tr>\r
+  <tr>\r
+    <td>\r
+        <table width="100%" border="0" cellspacing="0" cellpadding="0">\r
+        <tr> \r
+          <td><img src="<%=request.getContextPath()%>/images/banner.gif" width="431" height="86" /></td>\r
+          <td><div align="right"><img src="<%=request.getContextPath()%>/images/logo.jpg" width="110" height="86" /></div></td>\r
+        </tr>\r
+        <tr> \r
+          <td><font size="1" face="Courier New, Courier, mono">Welcome\r
+            <%= usr.getName() %>\r
+            </font></td>\r
+          <td><div align="right"><font size="1" face="Courier New, Courier, mono">Logged \r
+              in as \r
+              <%= usr.getRoleDesc() %>\r
+              </font></div></td>\r
+        </tr>\r
+        <tr> \r
+          <td><font size="1" face="Courier New, Courier, mono">Last Login Date: \r
+            <%= usr.getLastLogin() %>\r
+            </font></td>\r
+          <td><div align="right"><font size="1" face="Courier New, Courier, mono">Current \r
+              Date: \r
+              <%= new java.util.Date() %>\r
+              </font></div></td>\r
+        </tr>\r
+      </table>\r
+     </td>\r
+  </tr>\r
+  <tr>\r
+     <td>\r
+<!------  MENU STARTS -->\r
+<%\r
+if( usr.getRole().equals("0")) { // ROOT USER\r
+//if( role_id.equals("0")) { // ROOT USER %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="users" class="top_link"><span class="down">User Management</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/addnewuser.jsp">Add New User </a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/searchuser.jsp">Edit/Update User</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/resetpass.jsp">Reset Password </a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/deleteuser.jsp">Delete User</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Add New Requests</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New Visa Debit Card </a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/ops/newtiacard.jsp">New TIA Card</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote Channel Request</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/callcenter/viewactivationrequests.jsp" class="top_link"><span>View Activation Requests</span></a></li>\r
+       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link Accounts</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link Accounts</a></li>\r
+                <li ><a href="#nogo3" class="fly">View Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete Card</a></li>\r
+                <li ><a href="#nogo3" class="fly">View Deletions</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Control Panel</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="#nogo1" class="fly">KYC Settings</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addkycval.jsp">Add New KYC Values</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editkycval.jsp">Edit/Update KYC Values</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">Product Groups</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addproducts.jsp">Add Product Groups</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editproducts.jsp">Edit/Update Product Groups</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">Product Mapping</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addmapping.jsp">Add New Mapping</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editmapping.jsp">Edit/Update Mapping</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="#nogo1" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("1")) { // IDC USER\r
+//if( role_id.equals("1")) { // IDC USER %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="users" class="top_link"><span class="down">User Management</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/addnewuser.jsp">Add New User </a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/searchuser.jsp">Edit/Update User</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/resetpass.jsp">Reset Password </a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/deleteuser.jsp">Delete User</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+               <ul class="sub">\r
+                    <li><a href="<%= request.getContextPath()%>/modules/users/ViewUserList.jsp">Users List</a></li>\r
+                    <li><a href="<%= request.getContextPath()%>/modules/users/UserLogReport.jsp">User Log Report</a></li>\r
+               </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/users/searchuser.jsp" class="top_link"><span>Search User</span></a></li>\r
+       <li class="top"><a href="<%= request.getContextPath()%>/modules/commons/Help.jsp" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("11")) { // BRANCH PROCESSOR\r
+//if( role_id.equals("11")) { // BRANCH PROCESSOR %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Add New Requests</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New Visa Debit Card </a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote Channel Request</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link Accounts</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link Accounts</a></li>\r
+                <li ><a href="#nogo3" class="fly">View Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete Card</a></li>\r
+                <li ><a href="#nogo3" class="fly">View Deletions</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+            <ul class="sub">\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="<%= request.getContextPath()%>/modules/commons/Help.jsp" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("12")) { // BRANCH APPROVER\r
+//if( role_id.equals("12")) { // BRANCH APPROVER %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="#nogo3" class="fly">View Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
+               <ul class="sub">\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
+               </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+               <ul class="sub">\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit Trail</a></li>\r
+               </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("21")) { // OPS PROCESSOR\r
+//if( role_id.equals("21")) { // OPS PROCESSOR %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Add New Requests</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New Visa Debit Card </a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/ops/newtiacard.jsp">New TIA Card</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote Channel Request</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link Accounts</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link Accounts</a></li>\r
+                <li ><a href="#nogo3" class="fly">View Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete Card</a></li>\r
+                <li ><a href="#nogo3" class="fly">View Deletions</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+               <ul class="sub">\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
+               </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("22")) { // OPS APPROVER\r
+//if( role_id.equals("22")) { // OPS APPROVER %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="#nogo3" class="fly">View Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletions</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+               <ul class="sub">\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
+                    <li ><a href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit Trail</a></li>\r
+               </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
+               <ul class="sub">\r
+                    <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
+                    <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
+                    <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                    <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+               </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("23")) { // OPS ADMIN\r
+//if( role_id.equals("23")) { // OPS ADMIN %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Control Panel</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="#nogo1" class="fly">KYC Settings</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addkycval.jsp">Add New KYC Values</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editkycval.jsp">Edit/Update KYC Values</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">Product Groups</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addproducts.jsp">Add Product Groups</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editproducts.jsp">Edit/Update Product Groups</a></li>\r
+                    </ul>\r
+                </li>\r
+                <li ><a href="#nogo3" class="fly">Product Mapping</a>\r
+                    <ul>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addmapping.jsp">Add New Mapping</a></li>\r
+                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editmapping.jsp">Edit/Update Mapping</a></li>\r
+                    </ul>\r
+                </li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/admin/viewkyc.jsp">KYC Rules</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/viewproducts.jsp">Product Group List</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit Trail</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("31")) { // CPDU PROCESSOR\r
+//if( role_id.equals("31")) { // CPDU PROCESSOR %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/cpdu/pendingjobs.jsp">View Pending Cards</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/cpdu/generatechf.jsp">Process Cards (CHF generation)</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Process Return Hand-off File (RHF)</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/cpdu/pendingrhf.jsp">View Pending RHF</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/cpdu/parserhf.jsp">Process RHF</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=all">Error Logs</a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/cpdu/transmittalreport.jsp">Transmittal Report</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/cpdu/exportwelcome.jsp">Export for Welcome Letter</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% }\r
+if( usr.getRole().equals("41")) { // CALL-CENTER AGENT\r
+//if( role_id.equals("41")) { // CALL-CENTER AGENT %>\r
+<ul id="nav">\r
+       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
+       <li class="top"><a href="<%= request.getContextPath()%>/modules/callcenter/viewactivationrequests.jsp" class="top_link"><span>View Activation Requests</span></a></li>\r
+       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
+            <ul class="sub">\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
+                <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
+                <li><a href="#nogo23"></a></li>\r
+            </ul>\r
+       </li>\r
+       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
+            <ul class="sub">\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
+                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
+            </ul>\r
+       </li>\r
+        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
+</ul>\r
+<% } %>\r
+<!------  MENU ENDS -->\r
+  </td>\r
+  </tr>\r
+</table>\r
+</body>\r
+<% } %>\r
+</html>\r
diff --git a/src/org/mcb/services/connectionmanager.java b/src/org/mcb/services/connectionmanager.java
new file mode 100644 (file)
index 0000000..689d6d2
--- /dev/null
@@ -0,0 +1,30 @@
+package org.mcb.services;
+
+/**
+ *
+ * @author yawar.saeed
+ */
+import java.sql.*;
+import java.util.*;
+import oracle.jdbc.driver.*;
+
+   public class connectionmanager {
+      static Connection scgmcon ;
+
+    public static Connection scgm_conn() throws Exception{
+             String host = "10.20.0.115";
+             String service = "scdb";
+             String usr = "scuser";
+             String pass = "scuser";
+             String driverName = "oracle.jdbc.driver.OracleDriver";
+             String connstr = "jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = " +
+                               host +")(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = " + service + ")))";
+             try{
+                Class.forName(driverName).newInstance();
+                scgmcon = DriverManager.getConnection(connstr, usr, pass);
+             }catch(Exception e){
+                System.out.println(e);
+             }
+            return(scgmcon);
+    }
+}
diff --git a/src/org/mcb/services/loginmanager.java b/src/org/mcb/services/loginmanager.java
new file mode 100644 (file)
index 0000000..eb147ac
--- /dev/null
@@ -0,0 +1,95 @@
+package org.mcb.services;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.net.*;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.http.HttpSession;
+/**
+ *
+ * @author yawar.saeed
+ */
+public class loginmanager extends HttpServlet {
+   
+    /** 
+     * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        response.setContentType("text/html;charset=UTF-8");
+        PrintWriter out = response.getWriter();
+        try {
+             userbean user = new userbean();
+             user.setUserId(request.getParameter("txt_userid"));
+             user.setPassword(request.getParameter("txt_pass"));
+             user = udac.login(user);
+             if (user.isValid()){
+                  HttpSession session = request.getSession(true);
+                  session.setAttribute("user", user);
+                  session.setAttribute("user_id",user.getUserId());
+                  session.setAttribute("user_name",user.getName());
+                  session.setAttribute("role_id",user.getRole());
+                  session.setAttribute("role_desc", user.getRoleDesc());
+                  session.setAttribute("last_login", user.getLastLogin());
+                  //response.sendRedirect("main.jsp"); //logged-in page
+                  //response.sendRedirect(response.encodeRedirectURL("main.jsp"));
+                  response.sendRedirect(request.getContextPath() + response.encodeRedirectURL("/main.jsp"));
+
+             }else{
+                //  response.sendRedirect("index.jsp?user="+user.isValid()); //revert back to login page
+                //  response.sendRedirect(response.encodeRedirectURL("index.jsp?user="+user.isValid())); //revert back to login page
+                    response.sendRedirect(request.getContextPath()
+                                        + response.encodeRedirectURL("/index.jsp")
+                                        + "?user="+ user.isValid());
+                                     //   + java.net.URLEncoder.encode());
+
+             }
+        } finally {
+            out.close();
+        }
+    } 
+
+    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
+    /** 
+     * Handles the HTTP <code>GET</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doGet(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    } 
+
+    /** 
+     * Handles the HTTP <code>POST</code> method.
+     * @param request servlet request
+     * @param response servlet response
+     * @throws ServletException if a servlet-specific error occurs
+     * @throws IOException if an I/O error occurs
+     */
+    @Override
+    protected void doPost(HttpServletRequest request, HttpServletResponse response)
+    throws ServletException, IOException {
+        processRequest(request, response);
+    }
+
+    /** 
+     * Returns a short description of the servlet.
+     * @return a String containing servlet description
+     */
+    @Override
+    public String getServletInfo() {
+        return "Short description";
+    }// </editor-fold>
+
+}
diff --git a/src/org/mcb/services/passwordservices.java b/src/org/mcb/services/passwordservices.java
new file mode 100644 (file)
index 0000000..c3314a5
--- /dev/null
@@ -0,0 +1,60 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package org.mcb.services;
+
+/**
+ *
+ * @author yawar.saeed
+ */
+
+import java.io.UnsupportedEncodingException;
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+//import org.mcb.SystemUnavailableException;
+import sun.misc.BASE64Encoder;
+import sun.misc.CharacterEncoder;
+public final class passwordservices
+{
+  private static passwordservices instance;
+  private passwordservices()
+  {
+  }
+  public synchronized String encrypt(String plaintext) throws Exception
+  {
+    MessageDigest md = null;
+    try
+    {
+      md = MessageDigest.getInstance("SHA"); //step 2
+    }
+    catch(NoSuchAlgorithmException e)
+    {
+      throw new Exception(e.getMessage());
+    }
+    try
+    {
+      md.update(plaintext.getBytes("UTF-8")); //step 3
+    }
+    catch(UnsupportedEncodingException e)
+    {
+      throw new Exception(e.getMessage());
+    }
+    byte raw[] = md.digest(); //step 4
+    String hash = (new BASE64Encoder()).encode(raw); //step 5
+    return hash; //step 6
+  }
+  public static synchronized passwordservices getInstance() //step 1
+  {
+    if(instance == null)
+    {
+      return new passwordservices();
+    }
+    else
+    {
+      return instance;
+    }
+  }
+}
+
diff --git a/src/org/mcb/services/udac.java b/src/org/mcb/services/udac.java
new file mode 100644 (file)
index 0000000..4dbc3a6
--- /dev/null
@@ -0,0 +1,95 @@
+package org.mcb.services;
+
+/**
+ *
+ * @author yawar.saeed
+ */
+import java.text.*;
+import java.util.*;
+import java.sql.*;
+import javax.servlet.http.HttpSession;
+
+   public class udac
+   {
+//      static Connection currentCon = null;
+//      static ResultSet rs = null;
+      
+      public static userbean login(userbean bean) {
+            //preparing some objects for connection
+            Connection currentCon = null;
+            ResultSet rs = null;
+            Statement stmt = null;
+            String userid = bean.getUserId();
+            String password = bean.getPassword();
+            String epass = null;
+            String name = null;
+            String user_id = null;
+            String role_id = null;
+            String branch_code = null;
+            String last_login = null;
+            String role_desc = null;
+            try{
+                epass = passwordservices.getInstance().encrypt(password);
+            }catch(Exception e){
+                System.out.println(e);
+            }
+            String searchQuery = "SELECT a.USER_ID,a.NAME, a.BRANCH_CODE, a.PASSWORD, a.LAST_LOGIN_DATE, a.ROLE_ID, b.ROLE_DESC FROM LOGIN_INFORMATION a, ROLES b WHERE a.ACTIVE = 'A' AND a.ROLE_ID = b.ROLE_ID ";
+            searchQuery = searchQuery + "AND LOWER(a.USER_ID) = LOWER('"+ userid + "') AND a.PASSWORD = '"+epass+"'";
+            try{
+                //connect to DB
+                currentCon = connectionmanager.scgm_conn();
+                stmt=currentCon.createStatement();
+                rs = stmt.executeQuery(searchQuery);
+                boolean hasdata=false;
+                while(rs.next()) {
+                    hasdata=true;
+                    name = rs.getString("NAME");
+                    user_id = rs.getString("USER_ID");
+                    branch_code = rs.getString("BRANCH_CODE");
+                    role_id = rs.getString("ROLE_ID");
+                    last_login = rs.getString("LAST_LOGIN_DATE");
+                    role_desc = rs.getString("ROLE_DESC");
+                    bean.setName(name);
+                    bean.setUserId(user_id);
+                    bean.setBranch(branch_code);
+                    bean.setRole(role_id);
+                    bean.setLastLogin(last_login);
+                    bean.setRoleDesc(role_desc);
+                    bean.setValid(true);
+                }
+                if(!hasdata) {
+                    System.out.println("Sorry, you are not a registered user! Please sign up first "+ searchQuery);
+                    bean.setValid(false);
+                }
+            }catch (Exception ex){
+             System.out.println("Log In failed: An Exception has occurred! " + ex);
+            }
+            //some exception handling
+            finally{
+             if (rs != null)   {
+                try {
+                   rs.close();
+                } catch (Exception e) {}
+                   rs = null;
+                }
+
+             if (stmt != null) {
+                try {
+                   stmt.close();
+                } catch (Exception e) {}
+                   stmt = null;
+                }
+
+             if (currentCon != null) {
+                try {
+                   currentCon.close();
+                } catch (Exception e) {
+                }
+
+                currentCon = null;
+             }
+            }
+return bean;
+
+    }
+}
diff --git a/src/org/mcb/services/userbean.java b/src/org/mcb/services/userbean.java
new file mode 100644 (file)
index 0000000..0fd4db5
--- /dev/null
@@ -0,0 +1,85 @@
+/*
+ * To change this template, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package org.mcb.services;
+
+/**
+ *
+ * @author yawar.saeed
+ */
+public class userbean {
+      private String userid;
+      private String password;
+      private String RoleDesc;
+      private String LastLogin;
+      private String Name;
+      private String Branch;
+      private String RoleId;
+      public boolean valid;
+
+      public String getName() {
+         return Name;
+        }
+
+      public void setName(String newName) {
+         Name = newName;
+       }
+      public String getBranch() {
+         return Branch;
+        }
+
+      public void setBranch(String newBranch) {
+         Branch = newBranch;
+       }
+      public String getRole() {
+         return RoleId;
+        }
+
+      public void setRole(String newRole) {
+         RoleId = newRole;
+       }
+      public String getRoleDesc() {
+         return RoleDesc;
+       }
+
+      public void setRoleDesc(String newRoleDesc) {
+         RoleDesc = newRoleDesc;
+       }
+
+      public String getLastLogin() {
+         return LastLogin;
+       }
+
+      public void setLastLogin(String newLastLogin) {
+         LastLogin = newLastLogin;
+       }
+
+
+      public String getPassword() {
+         return password;
+       }
+
+      public void setPassword(String newPassword) {
+         password = newPassword;
+       }
+
+
+      public String getUserId() {
+         return userid;
+       }
+
+      public void setUserId(String newUserId) {
+         userid = newUserId;
+       }
+
+
+      public boolean isValid() {
+         return valid;
+       }
+
+      public void setValid(boolean newValid) {
+         valid = newValid;
+       }
+}