public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
  submitCycle=true;
  String serverName=(String)getPageSessionAttribute(PG_ATTR_SERVER_NAME);
  String parentSite=(serverName.equals(ServerConfiguration.DEFAULT_SERVER_CONFIG)) ? null : (String)getDisplayFieldValue(PARENT_SITE);
  ServerSiteModel model=(ServerSiteModel)getModel();
  try {
    model.modifyServer(serverName,parentSite,getAttributeValues());
    setInlineAlertMessage(CCAlert.TYPE_INFO,"message.information","serverconfig.updated");
  }
 catch (  UnknownPropertyNameException e) {
  }
catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",e.getMessage());
  }
  forwardTo();
}

public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { submitCycle = true ; String serverName = ( String ) getPageSessionAttribute ( PG_ATTR_SERVER_NAME ) ; String parentSite = ( serverName . equals ( ServerConfiguration . DEFAULT_SERVER_CONFIG ) ) ? null : ( String ) getDisplayFieldValue ( PARENT_SITE ) ; ServerSiteModel model = ( ServerSiteModel ) getModel ( ) ; try { model . modifyServer ( serverName , parentSite , getAttributeValues ( ) ) ; setInlineAlertMessage ( CCAlert . TYPE_INFO , "message.information" , "serverconfig.updated" ) ; } catch ( UnknownPropertyNameException e ) { } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; } forwardTo ( ) ; }
handles create site request .
