public void beginDisplay(DisplayEvent event) throws ModelControlException {
  if (ad != null) {
    try {
      String cookieDomain=null;
      Set<String> cookieDomainSet=AuthClientUtils.getCookieDomainsForRequest(request);
      Cookie cookie;
      setPageEncoding(request,response);
      if (cookieDomainSet.isEmpty()) {
        cookie=AuthUtils.getLogoutCookie(ac,null);
        response.addCookie(cookie);
      }
 else {
        Iterator iter=cookieDomainSet.iterator();
        while (iter.hasNext()) {
          cookieDomain=(String)iter.next();
          cookie=AuthUtils.getLogoutCookie(ac,cookieDomain);
          response.addCookie(cookie);
        }
      }
      AuthUtils.clearlbCookie(request,response);
      ResultVal=rb.getString("uncaught_exception");
    }
 catch (    Exception e) {
      e.printStackTrace();
      if (exDebug.messageEnabled()) {
        exDebug.message("error in getting Exception : " + e.getMessage());
      }
      ResultVal=rb.getString("uncaught_exception") + " : " + e.getMessage();
    }
  }
}

public void beginDisplay ( DisplayEvent event ) throws ModelControlException { if ( ad != null ) { try { String cookieDomain = null ; Set < String > cookieDomainSet = AuthClientUtils . getCookieDomainsForRequest ( request ) ; Cookie cookie ; setPageEncoding ( request , response ) ; if ( cookieDomainSet . isEmpty ( ) ) { cookie = AuthUtils . getLogoutCookie ( ac , null ) ; response . addCookie ( cookie ) ; } else { Iterator iter = cookieDomainSet . iterator ( ) ; while ( iter . hasNext ( ) ) { cookieDomain = ( String ) iter . next ( ) ; cookie = AuthUtils . getLogoutCookie ( ac , cookieDomain ) ; response . addCookie ( cookie ) ; } } AuthUtils . clearlbCookie ( request , response ) ; ResultVal = rb . getString ( "uncaught_exception" ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; if ( exDebug . messageEnabled ( ) ) { exDebug . message ( "error in getting Exception : " + e . getMessage ( ) ) ; } ResultVal = rb . getString ( "uncaught_exception" ) + " : " + e . getMessage ( ) ; } } }
called as notification that the jsp has begun its display processing . in addition to performing the default behavior in the superclass ' s version , this method executes any auto - retrieving or auto - executing models associated with this view unless auto - retrieval is disabled .
