2008-06-25

FacesContext & ServletContext

关键字: context
FacesContext fc = FacesContext.getCurrentInstance(); ExternalContext ec = fc.getExternalContext(); HttpServletRequest servletRequest = (HttpServletRequest)ec.getRequest(); HttpServletResponse servletResponse = (HttpServletResponse)ec.getResponse();   取得 parameter的办法 1) String ...
2008-06-24

Class简单使用

关键字: rtti
//how to get class Class clazz = String.class; clazz = int.class; String s = "abc"; clazz = s.getClass(); clazz = Class.forName("java.util.ArrayList"); //create instance using default constructor List list = (List) clazz.newInstance(); //isXX ...
2008-06-23

regexp 简单运用

关键字: regexp
        //split         String s = "hello world i am 23 years";         String[] ss = s.split("\\s");         //replace      &nbs ...
xushaoxun
搜索本博客
我的相册
C71f41f7-65f6-4553-ae3b-894557e71278-thumb
inter
共 2 张
最近加入圈子
存档
最新评论