`
文章列表
jquery 遍历checkbox var a="";  $('input[type="checkbox"][name="chk"]:checked').each(                function() {                       a=a+"|"+$(this).val();                   }            );  $('input[type="checkbox"][name="chk"]').each(   ...
    jQuery下一些查找过滤功能filter(),not(),split()用法,可以让jquery更容易的操作控制页面元素。 filter()和not(): <script type="text/javascript"> $(document).ready(function() { //输出 hello alert($("p").filter(".selected").html()); //输出 How are you? alert($("p").not("
在项目架构中,主流框架都用了Spring的集大成者。在某些时候,我们需要从spring上下文中取得注册Bean,并操作CRUD。 我们通过实现ApplicationContextAware来获取上下文,取得想要的bean. 在保存时出现 No Hibernate Session bound to thread 错误。 需要在Service或者具体某个方法上加上@Transactional,开启了事务。   参考一下大侠的解释原因是: getHibernateTemplate().getSessionFactory().getCurrentSession()的意思是得到当前线程 ...
    获得spring里注册Bean的四种方法,特别是第三种方法, 在使用这些方法一定要注意: 注解事务是基于AOP实现的,AOP是需要接口的,所以在使用下面的方法时取出的bean要使用多态形式,不能直接获取具体的实现类。否则将抛出ClasCastException  $Proxy115 cannot be cast to com.cabletech.business.cronjob.service.impl.*     CronJobService cronJobService = (CronJobService) CronJobContext.getBean(&quo ...
注意点: 1.如果在PL/SQL 等工具里打开的话,直接修改下面的代码中[斜体加粗部分]执行 2.确保路径存在,比如【D:\oracle\oradata\Oracle9i\】也就是你要保存文件的路径存在 /*分为四步 */ /*第1步:创建临时表空间  */ create temporary tablespace user_temp  
 首先清理以前还原过的痕迹 drop user dwuser cascade; drop tablespace hfdb;   创建临时表空间   CREATE   TEMPORARY  TABLESPACE hfdb_temp  TEMPFILE  'e:/data/hfdb_temp.dbf '   SIZE 32M  AUTOEXTEND  ON   NEXT  32M MAXSIZE 2048M  EXTENT MANAGEMENT LOCAL;   创建表空间 CREATE  TABLESPACE DWZH_TBS  LOGGING  DATAFI ...
 HashMap map = new HashMap(); JobDataMap qzMap = context.getJobDetail().getJobDataMap(); Iterator i = qzMap.keySet().iterator();      while (i.hasNext()){        Object key = i.next();        map.put( key, qzMap.get( key ) );      }
各种数据库对应的jar包、驱动类名和URL格式 2011-12-13 13:14:58| 分类: Java | 标签: |字号大中小 订阅 1.1. 各种数据库对应的jar包 具体如下: 数据库类型
从文本读取特定的div,进行业务处理替换 ,总是遇到换行引起的正则表达式问题 eg: <div type="text" console="" name="cCode" value="" >sssss</div><input type="text" name="cCode" value="" /><input type="text" value="" />     ...
JS escape、encodeURI 、encodeURIComponent 编码与解码 本文讨论如何对传递参数用JS编码与解码 1:编码与解码方法的对应关系 escape -----------------------------------------------------unescape encodeURI -------------------------------------------------decodeURI encodeURIComponent -----------------------------------encodeURIComponen ...
//当前日期 Date date = new Date(); //格式化并转换String类型 String path="E:/"+new SimpleDateFormat("yyyy/MM/dd").format(date); //创建文件夹 File f = new File(path); if(!f.exists()) f.mkdirs();

Java Web Start

    博客分类:
  • OPEN
一.首先了解一下什么是java web start 1JNLP Java Network Launching Protocol (JNLP,java网络加载协议) JNLP解决了很多先前用java开发针对客户端的功能的问题。一个JNLP客户端是一个应用程序或者说服务,它可以从宿主于网络的资源中加载应用程序。如果你使用JNLP打包一个应用程序,那么一个JNLP客户端能够:    o 为该应用探测,安装并且使用正确版本的JRE(java运行时环境)    o 从浏览器或者桌面加载应用程序    o 当新版本的应用出现时自动下载最新的版本。    o 为了加速启动速度在本机缓存应用程序需要的类   ...
如何将.class文件打成jar包 需要修改E3Tree的源文件。将编译好的.class放进jar包中 1.cmd下进入E3Tree jar包的class文件目录; 2.输入命令jar cvf E3Tree.jar *; 一回车,cmd会提示增加-读入-写出指令。 目录下面多了一个E3Tree.jar的文件. 如果需要修改manifest.mf文件,就用RAR打开了jar文件,在MANIFEST.MF文件里面添加了这么一句:Main-Class: MainClass
The template at a glance一目了然的模板 Page Contents 网页内容 Intro. 前奏。 Examples of directives 指令的例子 The if directive “if指令 The list directive 该清单指令 The include directive include指令 Using directives together 使用指令一起 Dealing with missing variables 处理缺失变量 The simplest template is a plain HTML file (or w ...

FreeMarker

一目了然的数据模型 As you have seen, the data-model is basically a tree.正如你所看到的,数据模型基本上是一个树。 This tree can be arbitrarily complicated and deep, for example:这种树可以任意复杂和深刻的,例如:    (root) (根)   | |   +- animals + - 动物   | | | |   | +- mouse | + - 鼠标   | | | | | |     | | +- size = "small" | | + - ...
Global site tag (gtag.js) - Google Analytics