`
文章列表
一.常用表单基本取值方法(form1为表单名称,TextBox1为控件ID,以文本框为例,html控件与web服务器控件是一样的)          1.form1.TextBox1.value          2.var txt = document.all.TextBox1;            txt.value          3.var txt = document. ...
package com.test_01; import java.util.Scanner; public class test_03  {     public test_03() {         }         public static void main(String[] args){         System.out.println("请输入字母");            Scanner input = new Scanner(System.in);            String str = input.next();//由键盘输 ...
一,在action中:         CustomerActionForm  caf =(CustomerActionForm)form;         Customer customer = new Customer();         BeanUtils.copyProperties(customer, caf);         customerManager.addCustomer(customer, 0);     出现了argument type mismatch异常,原因 ...
说明:本文转载 http://hi.baidu.com/%B8%C4%C5%C9的博客 //测试邮箱均为新浪的,只要修改星号位置即可 import java.util.Date; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.NoSuchProviderException; import javax.mail.Session; import javax.mail.Transport; import javax.mail ...
一,重要属性 fieldLabel: 框名,所在的面板必须是layout:'form'才能显现 hiddenName:'snCompare',  //真正提交时此combo的Name triggerAction:'all',  //默认为query,每次下列均显示全部显示,而不是部分 editable:false,   //不可编辑 valueField:'value',   / ...
tree图表显示不正常,解决方法 1,tree所涉及到的js或jsp网页中插入: Ext.BLANK_IMAGE_URL='ext/resources/images/default/tree/s.gif'; 或是(jsp中) <script type="text/javascript"> Ext.BLANK_IMAGE_URL = '/ext/resources/images/default/tree/s.gif'; </script> 2,jsp网页中引入js是有顺序的, 先引入ext的js,         <link rel=" ...
一,代码使用:Spring+struts+hibernate+ext实现 1,Action代码,后台处理数据: //分页设置 public ActionForward pageSet(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { PageModel pageModel = customerManag ...
方式一,json传递的数据用jsp来传递(比较简单) 1,page_01.jsp <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <ht ...

Ext 学习笔记

    博客分类:
  • Ext
一, 1,Ext的事件处理方式(Ext.Button()为实例) 方式一:handler默认事件是click Ext.onReady(function(){ var button = new Ext.Button({ text:"提交", handler:function(){alert("您点击了该事件!")}, //手柄 renderTo:Ext.getBody() }); })   方式二:监听器,可以处理多种事件 Ext.onReady(function(){ var button = new Ext.Button({ tex ...
一,在Ext中直接使用DWR 1,PoJO的Manager类为      public class CustomerManagerImpl extends HibernateDaoSupport implements CustomerManager { public PageModel allCustomers() { PageModel pageModel = new PageModel(); List datas = new ArrayList(); int total ; String hql = "from Customer"; ...
1,在自己所需要设计的分区下建立文本内容:  [ExtShellFolderViews]{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}[{BE098140-A513-11D0-A3A4-00C04FD706EC}]Attributes=1IconArea_Image=G:\photo\a.jpg[.ShellClassInfo]ConfirmFileOp=0 2,保存名为:desktop.ini 3,若是移动硬盘,把照片放在自己移动硬盘的下,使用相对路径如:IconArea_Image=a ...
一,spring的正确使用 1,dwr.xml的配置 <dwr> <allow> <!-- dwr+spring --> <create creator="spring" javascript="JCustomerManager"> <param name="beanName" value="customerManager"/> </create> </allow> </dwr> ...
1,如何在javasript建立超链接    <script type="text/JavaScript">        //方法一:       location.href='网址';       //方法二:       document.write('<a href="网址">文字</a>');    </script> 2,应用到Ext中的树控件事件处理     tree_03.js Ext.onReady(function(){ var root = new Ext.tree.TreeNode ...
jbpm流程定义XML格式 1.定制action:<process-definition>   <start-state>      <transition to="s"/>   </start-state>   <state name="s">      <transition to="end">         <action class="com....MyActionHandler"/>      </transiti ...
Global site tag (gtag.js) - Google Analytics