摘要:
To prevent dialog box from getting dismissed on back key pressed use this And to prevent dialog box from getting dismissed on outside touch use this 阅读全文
摘要:
Open the Command Prompt (not as administrator)Navigate to the folder where IIS Express is installed on your machine.In the command line spin up a IISE... 阅读全文
摘要:
使用dom4j解析XML时,要快速获取某个节点的数据,使用XPath是个不错的方法,dom4j的快速手册里也建议使用这种方式,标题都写的这么阔气:Powerful Navigation with XPath。方法是使用Document的selectNodes(String XPath)方法,代码写法:List l = doc.selectNodes("//COLS/COL1");执行时却抛出以下异常:Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenExce 阅读全文
摘要:
MyEclipse:修改MyEclipse开发工具中的页面模板(JSP和HTML等)1.用MyEclipse工具开发Web项目,有一个很普遍的问题,就是在新建一个页面文件时,需要修改pageEncoding值,页面中默认的pageEncoding值一般是ISO-8859-1。2.如果Web项目需要支持中文,那就必须把那个ISO-8859-1给改掉,换成以下几种:UTF-8、GB2312或GBK。3.UTF-8在中文方面通用性好,如果要将页面的pageEncoding值换成UTF-8,比较简单,找到 MyEclipse开发工具的Window|Preferences-MyEclipse Enter 阅读全文