FacesContext fc = FacesContext.getCurrentInstance();
ExternalContext ec = fc.getExternalContext();
HttpServletRequest servletRequest =
(HttpServletRequest)ec.getRequest();
HttpServletResponse servletResponse = (HttpServletResponse)ec.getResponse();
取得
parameter的办法
1)
String ...
//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 ...
//split
String s = "hello world i am 23 years";
String[] ss = s.split("\\s");
//replace
&nbs ...
- 浏览: 5173 次
- 性别:

- 来自: 厦门

- 详细资料
搜索本博客
我的相册
inter
共 2 张
共 2 张
最近加入圈子
最新评论
-
dojo and ajax
很有用的函数!!
-- by cscs31 -
Dojo 与style相关的函数 ...
Lz能加上一些注解和例子就更好了:)
-- by cscs31






评论排行榜