<%@ page import="java.util.*,java.text.DecimalFormat" %> <%@ page language="java" import="java.sql.*"%> <% String userLoginName=request.getParameter("userLoginName"); String userPassword=request.getParameter("userPassword"); String userAllowedMenu=request.getParameter("userAllowedMenu"); //System.out.println(" login>"+userLoginName + " pwd>" + userPassword + " allowMenu>"+ userAllowedMenu); if ( (userAllowedMenu == null ) || (userAllowedMenu.length() == 0 ) ) { userLoginName = "public" ; userPassword = "public" ; userAllowedMenu = "PUBLIC" ; } session.setAttribute( "username", userLoginName ); session.setAttribute( "passwd", userPassword ); String returnCode="error"; %> Coastline Advisory System <% out.println( "
" ); %> <% out.println( " " ); %> <% out.println( " " ); %> <% out.println( " " ); %> <% // Connection conn = CacheConn.getConnection(); // Get it from Cache pool //System.out.println(" cla_login_bg.jsp ln=" + userLoginName + " pw=" + userPassword + " allow=" + userAllowedMenu); returnCode=loginBean.identifyUser( session, userLoginName,userPassword,userAllowedMenu); //System.out.println(" cla_xxx.jsp returnCode=" + returnCode); // conn.close(); // Put the Connection Back into the Pool %> <% if ( returnCode == null || returnCode.length() == 0 ) { %> <% } %> <% if (returnCode.equals("CLA_SWRCB") || returnCode.equals("LOCAL_AGENCY") || returnCode.equals("PUBLIC")) { if (returnCode.equals("CLA_SWRCB")) { %> <% } if (returnCode.equals("LOCAL_AGENCY")) { %> <% } if (returnCode.equals("PUBLIC")) { session.putValue("allowedMenu", returnCode); session.putValue("userFirstName", new String("public")); session.putValue("userLastName", new String("public")); session.putValue("userAgencyName", new String("public")); %> <% } } else { if (userAllowedMenu.equals("CLA_SWRCB")) { %> <% } %> <% if (userAllowedMenu.equals("LOCAL_AGENCY")) { %> <% } %> <% if (userAllowedMenu.equals("CLA_LOGOUT")) { %> <% } %> <% if (userAllowedMenu.equals("PUBLIC")) { %> <% } } %>