`
文章列表
在tomca目录下conf/service.xml里配置如下代码:  <Host name="www.abcd.com"  appBase="webapps"            unpackWARs="true" autoDeploy="true"            xmlValidation="false" xmlNamespaceAware="false">        <Context docBase="Drink" pa ...
    类似于List<String[]> 这样的集合用struts2标签迭代。假如在action中定义一个这样的集合: private List<String[]> layerDefineList; //set 和 get 方法     而在HTML中的迭代表现为: <table> <s:iterator value="layerDefineList" status="st"> <tr> <td><s:property value=& ...
       最近需要写一个上传文件后的ajax验证,找了半天用jquery的form插件结合ajax写了出来。看来jquery还是很强大的,以后的好好学习一下。        首先要引入jquery和form插件,注意顺序一定要先jquery,然后再form: <script type="text/javascript" src="../js/jquery-1.2.6.pack.js"></script> <script type="text/javascript" src="../js/ ...
一、连接MYSQL。 格式: mysql -h主机地址 -u用户名 -p用户密码 1、连接到本机上的MYSQL。 首先打开DOS窗口,然后进入目录mysql\bin,再键入命令mysql -u root -p,回车后提示你输密码.注意用户名前可以有空格也可以没有空格,但是密码前必须没有空格,否则让你重新输入密码. 如果刚安装好MYSQL,超级用户root是没有密码的,故直接回车即可进入到MYSQL中了,MYSQL的提示符是: mysql> 2、连接到远程主机上的MYSQL。假设远程主机的IP为:110.110.110.110,用户名为root,密码为abcd123。则键入以下命令: mys ...
       在panel中有个activeItem属性,后面跟需要激活的组件的ID或者索引,可以设置默认激活的组件。而在tabpanel中还有个activeTab属性,后面跟items中的组件的索引(从0开始)指定默认激活的组件。 在一个viewPort的center里: { id:"center", region:"center", xtype:"tabpanel", activeTab:0, //激活第一个面板,索引从0开始,也就是默认激活Movies ...
1.Ext.MessageBox.alert()方法       有四个参数,为简单起见,主要介绍前面三个参数:       alert( title , msg , function(){} )       其中title,msg为必选参数,function为可选参数,在关闭弹出窗口后触发。 Ext.MessageBox.alert("title","msg"); Ext.MessageBox.alert("title","msg",function(){alert("关闭对话框后弹出!" ...
The Example is given:                    Map testMap = new HashMap();          optionMap.put("sh", "shanghai ");          optionMap.put("bt", "北京 ");         如果Map里面的Key是Object(String,Integer,etc)就有问题 。因为freemarker里面没有TypeConverter机制,现在只能是字符串。freemarker显示hash ...
can't load com.sun.tools.javac.Main 错误描述: Resin can't load com.sun.tools.javac.Main.  Usually this means that the JDK tools.jar is missing from the classpath, possibly because of using a JRE instead of the JDK.  You can either add tools.jar to the classpath or change the compiler to an external one w ...
    Ajax中我们经常用到get和post请求.那么什么时候用get请求,什么时候用post方式请求呢? 在做回答前我们首先要了解get和post的区别.               1、 get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内 ...
public int fact(int n) { int result; if(n ==1) { return 1; } else { result = n*fact(n-1); return result; } }
Global site tag (gtag.js) - Google Analytics