摘要:
The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location] at org.apache.st... 阅读全文
摘要:
//js获取项目根路径,如: http://localhost:8083/uimcardprjfunction getRootPath(){ //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如: uimcardprj/share/meun.jsp var pathName=window.document.location.pathname; var pos=c... 阅读全文
摘要:
如果用Set,倘若list里边的元素不是基本数据类型而是对象,那么请覆写Object的booleanequals(Objectobj)和inthashCode()方法.returnnewArrayList(newHashSet(list));方法一:循环元素删除 // 删除ArrayList中重复元素 public static void removeDuplicate(List list) { for ( int i = 0 ; i i; j -- ) { if (list.get(j).equals(list.get(i))) { list.remove(... 阅读全文
摘要:
The Zero Clipboard JavaScript library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you. 阅读全文