drawable/button_color.xml
最后,需要在包含button的xml文件里添加两项。假如是activity_main.xml 文件,我们需要在里加两项。
android:focusable="true" android:backgroud="@drawable/button_co...
分类:
其他好文 时间:
2014-05-23 07:26:47
阅读次数:
287
前台
后台:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Net;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windo....
分类:
Web程序 时间:
2014-05-23 07:21:31
阅读次数:
296
一、概述1、启动一个WEB项目的时候,WEB容器会去读取它的配置文件web.xml,读取和两个结点。2、紧急着,容创建一个ServletContext(servlet上下文),这个web项目的所有部分都将共享这个上下文。3、容器将转换为键值对,并交给servletContext。4、容器创建中的类实...
分类:
Web程序 时间:
2014-05-23 07:16:19
阅读次数:
324
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace SU{ /// /// 中文转拼音 /// public class
PinYin ...
分类:
其他好文 时间:
2014-05-23 06:46:51
阅读次数:
395
utf-8编码格式用tomcat-6.0.18部署之后页面显示全是乱码。解决方法:
配置tomcat的server.xml 在下面两个地方加:URIEncoding="UTF-8"
分类:
其他好文 时间:
2014-05-23 06:24:53
阅读次数:
250
14:18 2014/5/5IOC inversion of control 控制反转
将new对象的权力由调用者转移到spring容器(即xml文件),Struts2与Spring整合(scope="prototype")由spring来维护struts的生命周期,在启动web容器时spring容...
分类:
其他好文 时间:
2014-05-23 05:56:11
阅读次数:
284
22:30 2014/5/21.层与层间的set:
xml方式:在action中曾有service的set方法,service层要有dao的service的set方法,dao曾要有hibernateTemplate的set方法。
注解方式:哪一层都不需要set方法。2.action曾的pojo对象的...
分类:
其他好文 时间:
2014-05-23 05:28:10
阅读次数:
225
0:33 2013/6/26三大框架整合时为什么要对项目进行junit测试:
|__目的是测试配置文件对不对,能跑通就可以进行开发了具体测试步骤: |__1.对hibernate进行测试 配置hibernate.cfg.xml
public class TestHibern...
分类:
其他好文 时间:
2014-05-23 05:09:57
阅读次数:
218
//创建一个XMLHttpRequest对象 ,利用此对象与服务器进行通信 是AJAX技术的核心
/** * 获取XmlHttpRequest对象 */function getXMLHttpRequest() { var xmlHttpReq=null;
if (window.XML...
分类:
其他好文 时间:
2014-05-23 04:49:53
阅读次数:
232
这里只是把解析的数据当日志打出来了 非常简单的xml解析方式 1 package
com.example.demo.service; 2 3 import java.io.IOException; 4 import
java.io.InputStream; 5 6 import ...
分类:
其他好文 时间:
2014-05-23 04:12:53
阅读次数:
308