`
姜中秋
  • 浏览: 86347 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
tomcat的server.xml文件修改前: 用loadrunner进行并发测试,7秒内只能请求1200次 修改server.xml文件 <Connector port="8080" protocol="HTTP/1.1" 添加下面代码 maxThreads="600" minSpareThreads="100" maxSpareThreads="500" acceptCount= ...
直接上代码: Ext.onReady( function() { var colorShowId = ''; var colorWin = new Ext.Window( { border :0, frame:false, closeAction :'hide', closable :false, resizable :false, width :100, height :80, items : [ { xtype:'colorpicker', ...
Ext.create('Ext.form.Panel', { title: 'Checkbox Group', width: 300, height: 125, bodyPadding: 10, renderTo: Ext.getBody(), items:[{ xtype: 'checkboxgroup', fieldLabel: 'Two Columns', id:'cg', // Arrange radio buttons into t ...
shell命令操作语法和JavaScript很类似,其实控制台底层的查询语句都是用JavaScript脚本完成操作的。 Ø 数据库 1、Help查看命令提示 help db.help(); db.yourColl.help(); db.youColl.find().help(); rs.help(); 2、切换/创建数据库 >use yourDB; 当创建一 ...
从今个开始mongodb学习开始
前短时间一直研究ExtJS来着,看了我做的ExtTest,项目组想试用一下ExtJS,于是决定让我研究一下。表面上很简单,其实Ext的功能强大自不必说,关键其 源码结构太乱了(如果有源码的结构清晰的就好了),实在难读,所以有些问题还是要不断琢磨、试验。 最近遇到个ExtJS的GridPanel的ColumnModel的动态加载的问题,就让我纠结了好几个小时,开始想得复杂了,还以为ColumnModel里边是什么对象来着, 因为我当成字符串传进去有问题,结果其实很简单,直接构造就可以了,代码如下(希望对遇到同样困难的哥们有用):     var colM = "company,id ...
mongodb由C++写就,其名字来自humongous这个单词的中间部分,从名字可见其野心所在就是海量数据的处理。关于它的一个最简洁描述为:scalable, high-performance, open source, schema-free, document-oriented database。MongoDB的主要目标是在键/值存 ...
不多说,项目遇到中文乱码 解决方案一,action中进行转码 例如:inputData = new String(inputData.getBytes("iso8859-1"),"utf-8"); 方案二:修改tomcat的server.xml文件 <Connector port="8080" protocol="HTTP/1.1"                connectionTimeout="20000"                redirectPort="84 ...
先介绍一下JS中处理URL的方法: 网址示例:http://localhost/test/test.htm?id=1 <script languge=javascript>  alert(window.location.pathname);   --返回   /test/test.htm   alert(window.location.search);     --返回   ?id=1  alert(window.location.href);       --返回   http://localhost/test/test.htm?id=1  </script> ...
在实际项目中,要求只能通过点击checkbox列才能进行行选择,这个时候我们可以用到checkbox的 checkOnly属性,设置其为true就可以 代码示例: selModel:Ext.create('Ext.selection.CheckboxModel',{checkOnly:true}),
Extjs 下拉框错位解决方式 错位可参看附件图 {header:'Class',dataIndex:'class',flex: 1,editor : { xtype: 'combobox', id:'analyzer_id123', typeAhead: true, triggerAction: 'all', queryMode: 'local',//去掉这个后下拉框显示正常 ...
需求:grid的header不确定,可进行灵活配置 解决方法:从后台传递grid  header数据 示例: Ext.onReady(function(){ Ext.Ajax.request({ url: extPath+'/center!autoGrid.action', params : { action : "query" }, method : 'POST', success : function(response) { var json = Ext.JSON.decode(response.responseText) ...

Ext propertygrid用法

var propertyGrid = new Ext.grid.PropertyGrid({     title: '员工属性表格',          width: 300,          height: 200,          frame: true,          source: {               "员工名称": '张三',               "出生日期": new Date(1978, 01, 02),               "性别": '男',             ...
servlet 的listener 和 filter启动顺序 listener先于filter启动 可以分别写两个类实现Filter和ServletContextListener接口,然后在其初始化方法中打印一段字,启动服务,便可再控制台看到相应顺序

jsp页面中的cookie

今天讲到cookie 添加cookie代码 Cookie cook = new Cookie("name","ccc"); cook.setMaxAge(24*3600); response.addCookie(cook); 获取cookie代码 Cookie[] cks = request.getCookies(); for(Cookie cook:cks){ if(cook.getName().equals("name")){ out.println(cook.getVa ...
Global site tag (gtag.js) - Google Analytics