private void changeWebManage() { WebConfig vo = new WebConfig(); try { int monflag = getParaIntValue("value"); WebConfigDao configdao = new WebConfigDao(); try { vo = (WebConfig) configdao.findByID(getParaValue("id")); } catch (Exception e) { e.printStackTrace(); } finally { configdao.close(); } vo.setFlag(monflag); configdao = new WebConfigDao(); try { configdao.update(vo); } catch (Exception e) { e.printStackTrace(); } finally { configdao.close(); } Web web = (Web) PollingEngine.getInstance().getWebByID(vo.getId()); web.setFlag(monflag); } catch (Exception e) { e.printStackTrace(); } }