public void beginDisplay(DisplayEvent event) throws ModelControlException {
  super.beginDisplay(event);
  String serverName=(String)getPageSessionAttribute(PG_ATTR_SERVER_NAME);
  ServerSiteModel model=(ServerSiteModel)getModel();
  try {
    getParentSites(serverName,model);
  }
 catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",e.getMessage());
  }
}

public void beginDisplay ( DisplayEvent event ) throws ModelControlException { super . beginDisplay ( event ) ; String serverName = ( String ) getPageSessionAttribute ( PG_ATTR_SERVER_NAME ) ; ServerSiteModel model = ( ServerSiteModel ) getModel ( ) ; try { getParentSites ( serverName , model ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; } }
displays the profile of a site .
