<%-- /******************************************************************** * * PROJECT : ElixirCMS * MODULE NAME : COMMON * FILENAME : login.jsp * AUTHOR : VINAY CEREJO * VERSION : 1.0 * CREATION DATE : 12/25/2002 * COMPANY : * COPYRIGHT : COPYRIGHT (C) 2000. * * MODIFICATION HISTORY:- *-------------------------------------------------------------------------------- * DATE BY REASON *-------------------------------------------------------------------------------- * 21/01/2003 Heena Jain Changed the look and feel of the Page * 30/01/2003 Heena Jain Commented the code in init which displays the user name * and the password as default * 01/02/2003 Heena Jain Added the if caluse for Exception, in order to avoid the display * of null on the screen. * 13/02/2003 SandeepBangera Added the japanese images and jap text * 13/11/2005 Pramod K. Added CommonMessages.js and removed the user/pwd default values * 18/05/2006 Tanmay Pru Base Code merging * Label used:-cms_pbs_vtn(1.3.0)_cor_cod-merge * 13/06/2006 Subhajit To get the User ID & Password from workflow. * Label used:-cms_sgn_wf_user_pass * 09/07/2008 avala sridhar reddy page has been modified for look and feel as per the user requested * 01/07/2012 Manoj Punde ManojP#1:Changes done for Re-Branding *-------------------------------------------------------------------------------- * *********************************************************************/ --%> <%@ page contentType="text/html; charset=Shift_JIS" import="java.util.*,com.mastek.eElixir.common.util.*" %> <%@ page import="com.mastek.eElixir.common.util.ClientMessage"%> <%@ page import="com.mastek.eElixir.channelmanagement.common.util.CHMEElixirUtils"%> <%-- /* start cms_pbs_vtn(1.3.0)_cor_cod-merge */ --%> <%@ taglib uri="/WEB-INF/tld/MessageTag.tld" prefix="info" %> <%-- /* start cms_pbs_vtn(1.3.0)_cor_cod-merge */ --%> <%--/*cms_sgn_wf_user_pass -- Start */ --%> <%@ page import="com.mastek.eElixir.channelmanagement.util.DataConstants"%> <%@ page import="com.mastek.eElixir.channelmanagement.util.BusinessParam"%> <%@ page import="com.mastek.eElixir.channelmanagement.util.BusinessParamCache"%> <%--/*cms_sgn_wf_user_pass -- End */ --%> <% String EXCEPTION = null; String EELIXIR_HOME = application.getServletContextName(); /* start cms_pbs_vtn(1.3.0)_cor_cod-merge */ String strWorkflow = request.getParameter("strWorkflow"); String strUserID = request.getParameter("strUserID"); String strPassword = request.getParameter("strPassword"); if( strWorkflow == null || strWorkflow.equals("") ) { strWorkflow=""; } /* end cms_pbs_vtn(1.3.0)_cor_cod-merge */ /*cms_sgn_wf_user_pass -- Start */ BusinessParamCache oBusinessParamCache = null; BusinessParam oBusinessParam = null; String strDelimiter = null; try { oBusinessParamCache = BusinessParamCache.getBusinessParamCache(); oBusinessParam = oBusinessParamCache.getBizParam(DataConstants.BUSS_PARAM_USER_PASS_DELIMITER,""); strDelimiter = oBusinessParam.getBizParamValue(); } catch(Exception e) { } if(strDelimiter==null || strDelimiter.equals("")) { strDelimiter = "="; } /*cms_sgn_wf_user_pass -- End */ //EXCEPTION = (String)request.getAttribute("EXCEPTION"); if(EXCEPTION == null) EXCEPTION=""; ClientMessage oClientMessage = null; oClientMessage = ClientMessage.getInstance(CHMEElixirUtils.getUserLocale(session)); String countryCode = ""; if (session != null) { session.invalidate(); } if (request.getLocale().toString().equalsIgnoreCase("ja")) { countryCode = "ja"; //oClientMessage = ClientMessage.getInstance(new Locale(countryCode,"")); } else { countryCode = "en"; //oClientMessage = ClientMessage.getInstance(new Locale(countryCode,"")); } %> ElixirCMS <%-- /* start cms_pbs_vtn(1.3.0)_cor_cod-merge */ --%> <%-- /* end cms_pbs_vtn(1.3.0)_cor_cod-merge */ --%>
<%-- /* start cms_pbs_vtn(1.3.0)_cor_cod-merge */ --%> <%-- /* end cms_pbs_vtn(1.3.0)_cor_cod-merge */ --%>
   
   
<%-- --%>
Language :




   
   
This is my login.jsp in which the .submit() function runs perfectly. However this is my top.jsp in which the .submit() doesnt run at all <%@ page contentType="text/html; charset=Shift_JIS" import="java.util.*,com.mastek.eElixir.common.util.*" %> <%@ page import="com.mastek.eElixir.common.util.ClientMessage"%> <%@ page import="com.mastek.eElixir.channelmanagement.common.util.CHMEElixirUtils"%> <%@ taglib uri="/WEB-INF/tld/MessageTag.tld" prefix="info" %> <%@ page import="com.mastek.eElixir.channelmanagement.util.DataConstants"%> <%@ page import="com.mastek.eElixir.channelmanagement.util.BusinessParam"%> <%@ page import="com.mastek.eElixir.channelmanagement.util.BusinessParamCache"%> <%@ page import="java.util.Date"%> <%@ page import="com.mastek.eElixir.common.util.EElixirUtils"%> <%@ page import="com.mastek.eElixir.common.util.Constants"%> <%@ page import="com.mastek.eElixir.security.UserInfo"%> <%@ page import="java.util.Locale"%> <%@ page import="java.text.ParseException"%> <%@ page import="java.text.SimpleDateFormat"%> <% UserInfo oUserInfo = (UserInfo)session.getAttribute("UserObject"); String strUserName = null; String currentdate = ""; String formattedDate= ""; String EELIXIR_HOME = application.getServletContextName(); if(oUserInfo != null) { strUserName = oUserInfo.userName; } else { strUserName = "AIG-Korea"; } %> PCA Life <% // The common JavaScript messages %> <% // The common JavaScript functions %>
<% currentdate = (String)session.getAttribute("out_buss_dt"); System.out.println("out_buss_dt " + currentdate); formattedDate = EElixirUtils.getTopFormattedDate(currentdate); %>
Welcome <%=strUserName%>
Logout