public boolean init(){
  m_session=m_request.getSession(true);
  m_forward=WebUtil.getParameter(m_request,P_ForwardTo);
  if (m_forward != null)   m_session.setAttribute(P_ForwardTo,m_forward);
 else   m_forward="";
  m_salesRep=WebUtil.getParameter(m_request,P_SalesRep_ID);
  if (m_salesRep != null)   m_session.setAttribute(P_SalesRep_ID,m_salesRep);
  m_email=WebUtil.getParameter(m_request,P_EMail);
  if (m_email == null)   m_email="";
  m_email=m_email.trim();
  if (m_email != null)   m_session.setAttribute(P_EMail,m_email);
  m_password=WebUtil.getParameter(m_request,P_Password);
  if (m_password == null)   m_password="";
  m_password=m_password.trim();
  if (m_session.getAttribute(WebInfo.NAME) != null) {
    WebInfo wi=(WebInfo)m_session.getAttribute(WebInfo.NAME);
    m_wu=wi.getWebUser();
  }
  return true;
}

public boolean init ( ) { m_session = m_request . getSession ( true ) ; m_forward = WebUtil . getParameter ( m_request , P_ForwardTo ) ; if ( m_forward != null ) m_session . setAttribute ( P_ForwardTo , m_forward ) ; else m_forward = "" ; m_salesRep = WebUtil . getParameter ( m_request , P_SalesRep_ID ) ; if ( m_salesRep != null ) m_session . setAttribute ( P_SalesRep_ID , m_salesRep ) ; m_email = WebUtil . getParameter ( m_request , P_EMail ) ; if ( m_email == null ) m_email = "" ; m_email = m_email . trim ( ) ; if ( m_email != null ) m_session . setAttribute ( P_EMail , m_email ) ; m_password = WebUtil . getParameter ( m_request , P_Password ) ; if ( m_password == null ) m_password = "" ; m_password = m_password . trim ( ) ; if ( m_session . getAttribute ( WebInfo . NAME ) != null ) { WebInfo wi = ( WebInfo ) m_session . getAttribute ( WebInfo . NAME ) ; m_wu = wi . getWebUser ( ) ; } return true ; }
init will initialize the weblogin object for further use
