- 博客(57)
- 资源 (5)
- 收藏
- 关注
原创 Android手机端调用webservice来获得手机归属地号码
1:原理解析 我们通过soap协议来调用http://www.webxml.com.cn/zh_cn/index.aspx android端需要发送的数据信息,也是协议信息POST /WebServices/MobileCodeWS.asmx HTTP/1.1Host
2011-07-29 10:25:00 5872 6
原创 HTML和XML常用的转义字符
HTML常用转义字符: 字符转义字符描述&&和<小于号>>大于号""双引号 空格©©版权符®®注册符XML常用转义字符: 字符转义字符描述&&和<小于号>>大于号""双引号''单引
2011-07-28 14:00:38 1027
原创 Ext Js中Ext.XTemplate使用方法学习
1:基本知识 XTemplate是Ext.Template扩展的新类,它支持高级功能的模板类,如自动数组输出、条件判断、子模板、基本数学运行、特殊内建的模板变量,直接执行代码和更多的功能Autofilling arrays using templates and sub-
2011-07-28 11:41:19 18901
原创 在java中和javascript中过滤掉类似于img形式的字符串,从而不显示图片
1:javascript过滤掉和形式的字符串过滤html中的img属性 var htmlContent = ""; var data = htmlContent.replace(/.*/ig,""); //过滤如形式的图片元素 da
2011-07-28 09:43:55 6364
原创 Ext Js中常见的操作DOM的方法
1:parent方法parent( [String selector], [Boolean returnDom] ) : Ext.Element/HTMLElementGets the parent node for this element, optionally chaini
2011-07-27 15:03:32 6946
原创 Ext.Element.update和Ext.Element.load方法学习
1:Ext.Element.update update( String html ) : Ext.ElementUpdate the innerHTML of this elementParametershtml : StringThe new HTML
2011-07-27 14:04:27 2748
原创 Ext Js3.2中Ext.Element类的学习
1:基本知识 Ext Js中最基本的元素是Ext.Element, 它是构成Ext.Js组件的元素,介于纯DOM和Component之间,它实在标准HTML元素上进行的高级封装,可以在上面添加如事件监听器,对DOM操作,对CSS操作等内容 W3C标准是通过docum
2011-07-27 00:36:49 2418
原创 使用Ext Js3.2实现的具有选择框的菜单,使用Ext.menu.Menu来实现
1:menu.jsp<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getSer
2011-07-26 23:20:27 2524
原创 使用Ext Js 3.2创建具有三级或者多级菜单,使用Ext.menu.Menu类
1:menu.jsp的内容<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
2011-07-26 22:59:03 3394
原创 使用Ext.js3.2实现简单的菜单栏,使用类Ext.menu.Menu
1:menu1.jsp<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.ge
2011-07-26 22:43:00 1867
原创 Ext Js 4实现的一个搜索框,调用的是谷歌的api,使用谷歌来搜索
1:searchfiled.jsp的内容如下:<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":
2011-07-26 14:49:19 2820
原创 Ext.toolbar.Toolbar的学习,是Ext Js 4的类,Ext Js3的用法有些不同
1:toolbar1.jsp <%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+reques
2011-07-26 13:48:01 3339
原创 Ext.ProgressBar学习
1:基本知识 它是一个能够修改的进度条组件,提供两种不同的工作模式:手动模式和自动模式 在手动模式下,进度条的显示,更新以及还原等操作都需要在代码里面进行控制,在展示一个长时间的操作过程时,大家都是通过预设一些事件来更新进度条 在自动模式下,只需要调用wait
2011-07-26 00:35:47 1864 1
原创 Ext.MessageBox学习,包括alert,confirm,prompt,wait和show的使用方法
1:基本知识Note that the MessageBox is asynchronous. Unlike a regular JavaScript alert (which will halt browser execution), showing a MessageBox
2011-07-25 00:09:51 12913
原创 Ext.TabPanel学习
1:基本知识A basic tab container. TabPanels can be used exactly like a standard Ext.Panel for layout purposes, but also have special support for
2011-07-24 21:52:59 1474
原创 Ext.Panel学习
1:基本知识Panel is a container that has specific functionality and structural components that make it the perfect building block for application
2011-07-24 21:08:43 1297
原创 Ext.Container类学习
1:基本知识 Base class for any Ext.BoxComponent that may contain other Components. Containers handle the basic behavior of containing items, n
2011-07-24 20:17:21 7778
原创 Ext.BoxComponent学习
1:基本的知识 Base class for any Component that is to be sized as a box, using width and height. BoxComponent provides automatic box model a
2011-07-24 19:33:42 8474
原创 Ext.Component组件学习
1:基本 Base class for all Ext components. All subclasses of Component may participate in the automated Ext component lifecycle of creation,
2011-07-24 18:57:43 1618
原创 android客户端通过Get方式提交参数给服务器,使用URL和HttpURLConnection实现,以及乱码问题解决
服务器端的设置服务器端采用Struts2来接收android端的请求,android版本为2.2.3配置如下:1:web.xml的配置为 Struts Blank struts2 org.apache.stru
2011-07-21 16:45:20 22297 2
原创 android端和Struts2服务器端通信,交互信息,参数采用JSON,使用了HttpClient与HttpPost类
首先是Struts端的程序,采用Struts2.1.61:web.xml的配置,主要是配置Struts2的filter struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrep
2011-07-21 01:37:08 18179 19
原创 Unable to find parent packages json-default 与java.lang.ClassNotFoundException: net.sf.ezmorph.Morphe
在一次开发json的应用时出现上面两个异常,经过仔细查找资料,发现是少了包造成的,包含json的应用应该包含如下包:struts2-json-plugin-2.1.8.1.jarezmorph-1.0.6.jar commons-lang 2.4 commons-beanutil
2011-07-21 00:33:01 3472
原创 js中解析日期类型的数据,并比较大小
1:解析2007-2-28 10:18:30类型的数据 function date1(str) { var strArray = str.split(" "); var strDate = strArray[0].split("-"); var strTi
2011-07-20 17:26:39 8297
原创 android中使用TextView来显示某个网址的内容,使用<ScrollView>来生成下拉列表框
1:androidmanifest.xml的内容<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.itcast.htmlview" a
2011-07-20 14:03:26 3602 2
原创 java网络编程:获取某个网址的html内容
HtmlRequest类的内容:package com.capinfotech.net;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.InputStre
2011-07-20 13:43:16 9676
原创 android从网络中获得一张图片,并显示在屏幕上
1:androidmanifest.xml的内容<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cn.capinftotech.image" an
2011-07-20 11:50:06 27492 3
原创 java网络编程:下载网络上的一张图片
1:ImageRequest 类package com.capinfotech.net;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileOutputStream
2011-07-20 10:42:49 4815 1
原创 在android中读取联系人信息的程序,包括读取联系人姓名、联系方式和邮箱等
1:androidmanifest.xml的内容<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cn.itcast.contacts" an
2011-07-20 00:44:44 13705 1
原创 android写入联系人Contacts的信息,包括联系人的姓名,联系方式和邮箱
1:androidmanifest.xml的内容<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cn.itcast.contacts" an
2011-07-19 23:25:38 14213 6
原创 android中SQLite的使用总结,用excSQL和rawQuery方法实现一般得增删改查
1:androidmanifest.xml的内容<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="cn.itcast.db" android:ver
2011-07-19 14:14:39 33327 8
转载 JFreesChart中乱码问题的解决
1:程序的乱码显示如下图2:对图片的解析以上图表对应的jsp文件代码为:<%@ page import="org.jfree.chart.ChartFactory,org.jfree.chart.JFreeChart,org.jfree.chart
2011-07-15 17:20:42 2647 1
原创 android中SharedPreferences的简单例子
1:界面布局<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width=
2011-07-14 23:58:11 5614 1
转载 当下流行的分布式文件系统简单介绍
本文对目前数种分布式文件系统进行简单的介绍。当前比较流行的分布式文件系统包括:Lustre、Hadoop、MogileFS、FreeNAS、FastDFS、NFS、OpenAFS、MooseFS、pNFS、以及GoogleFS。 Lustre(www.lustre.org)
2011-07-14 13:05:02 3919
原创 在android中使用Pull解析器生成xml文件
1:程序用到的Person类public class Person { private Integer id; private String name; private Short age; public Person(){} public Person(In
2011-07-14 00:13:50 1220
原创 在android中使用Pull解析器读取xml文件,并进行测试
1:读取xml文件的类public class PullXMLService { /* * bo 28 xiaohong 21
2011-07-13 23:46:10 1152
原创 Java Socket编程之创建线程池
1:类ThreadPoolimport java.util.LinkedList;public class ThreadPool extends ThreadGroup { private boolean isClosed = false; //线程池是否关闭
2011-07-12 17:58:49 5201
原创 Spring依赖注入的配置
1:构造器注入类:public class ExampleBean { private AnotherBean beanOne; private YetAnotherBean beanTwo; private int i;
2011-07-12 14:38:22 10166
原创 Struts1与Struts2的不同
对比指标Struts1Struts2Action类Struts1要求Action类继承一个抽象类,Struts1普遍使用抽象类而不是接口Struts2 Action类可以实现一个Action接口,也可以实现其他的接口,使可选和定制的服务成为可能,Struts2提供了一个Actio
2011-07-11 22:56:50 858
网络五子棋程序用vc++实现
2010-04-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人