public void beginDisplay(DisplayEvent event) throws ModelControlException {
  super.beginDisplay(event);
  String siteName=(String)getPageSessionAttribute(PG_ATTR_SITE_NAME);
  ServerSiteModel model=(ServerSiteModel)getModel();
  ptModel.setPageTitleText(model.getEditSitePageTitle(siteName));
  try {
    setDisplayFieldValue(TF_URL,model.getSitePrimaryURL(siteName));
    getFailoverURLs(siteName,model);
    getServers(siteName,model);
  }
 catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",e.getMessage());
  }
}

public void beginDisplay ( DisplayEvent event ) throws ModelControlException { super . beginDisplay ( event ) ; String siteName = ( String ) getPageSessionAttribute ( PG_ATTR_SITE_NAME ) ; ServerSiteModel model = ( ServerSiteModel ) getModel ( ) ; ptModel . setPageTitleText ( model . getEditSitePageTitle ( siteName ) ) ; try { setDisplayFieldValue ( TF_URL , model . getSitePrimaryURL ( siteName ) ) ; getFailoverURLs ( siteName , model ) ; getServers ( siteName , model ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; } }
displays the profile of a site .
