首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

公司旧框架 tmd 弹出异常框来 HBusinessException

2013-12-07 
公司旧框架 tmd 弹出错误框来 HBusinessException前台调用如下:public void addkey() throws Exception{St

公司旧框架 tmd 弹出错误框来 HBusinessException
前台调用如下:

public void addkey() throws Exception{String key=paraPool.get("key");System.out.println("key==="+key);if(key != null)throw new HBusinessException("咚咚咚");String key2=paraPool.get("key2");String[] keyarray = key.split(",");List<String> keyList = Arrays.asList(keyarray);System.out.println(keyList.size());List<Keyword> list=this.searchKeyWord();Keyword keyword=new Keyword();if(list!=null&&list.size()>0){keyword=list.get(0);keyword.setKeyword(key);keyword.setKeyword2(key2);this.hbn.update(keyword);}else{keyword.setId("1");keyword.setKeyword(key);keyword.setKeyword2(key2);this.hbn.save(keyword);}this.uContext.getRequest().getSession().setAttribute("keyword", key);this.uContext.getRequest().getSession().setAttribute("keyword2", key2);this.uContext.getRequest().getSession().setAttribute("listkey", this.searchKeyWord());System.out.println(this.uContext.getRequest().getSession().getAttribute("listkey"));}

热点排行