2014年8月11日
摘要: Struts2接收checkbox的值:HTML:B1B2B3B4Action:private List listCheckbox;public List getListCheckbox() {return listCheckbox;}public void setListCheckbox(List... 阅读全文
posted @ 2014-08-11 15:52 暮光之眼 阅读(717) 评论(0) 推荐(0) 编辑
摘要: Spring属于轻量级还是重量级框架? 这需针对使用Spring的功能而言,比如我们常使用其核心服务整合SSH,这样则为轻量级。如果使用其大部分服务则可以理解为重量级。普通JAVA项目环境下预加载Spring —applicationContext.xmlAbstractApplicationCon... 阅读全文
posted @ 2014-08-11 15:51 暮光之眼 阅读(99) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) {outer: for (int i = 0; true; i++) {inner: for (int j = 0; true; j++) {System.out.println("i=" + i + "------j="... 阅读全文
posted @ 2014-08-11 14:36 暮光之眼 阅读(212) 评论(0) 推荐(0) 编辑
摘要: public class Test {public static void main(String[] args) {String str = "";// list转字符串List list = new ArrayList();list.add("A");list.add("B");list.add... 阅读全文
posted @ 2014-08-11 14:28 暮光之眼 阅读(665) 评论(0) 推荐(0) 编辑
摘要: ArrayList提供了一个将List转为数组的一个非常方便的方法toArray。toArray有两个重载的方法:1.list.toArray();2.list.toArray(T[] a);对于第一个重载方法,是将list直接转为Object[] 数组;第二种方法是将list转化为你所需要类型的数... 阅读全文
posted @ 2014-08-11 14:09 暮光之眼 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 使用过SSH注解的屌丝们都知道,要想使用注解需要在applicationContext.xml配置文件里面开启注解配置,开启方式如下:1.头部声明需加入xmlns:context="http://www.springframework.org/schema/context"http://www.sp... 阅读全文
posted @ 2014-08-11 11:22 暮光之眼 阅读(1504) 评论(0) 推荐(0) 编辑