1.如何在实现的一个简单的Action类的,最简单的方法就是在一个普通类继承一个ActionSupport。2.DMI动态方法调用,在一个action里execute()方法是自动执行的,如果需要其他方法那么可以使用DMI动态方法,下面举一个小例子!struts.xml配置文件如下 ...
分类:
其他好文 时间:
2014-06-25 12:26:45
阅读次数:
239
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-06-25 12:09:43
阅读次数:
184
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-06-25 09:15:12
阅读次数:
362
. 概述
1.1 JDBC概念
JDBC(Java Database Connectivity)是Java语言为了支持SQL功能而提供的与数据库连接的用户的接口,JDBC中包括了一组由(Java)语言书写的接口和类,它们都是独立于特定的DBMS,或者说他们可以和各种数据库相关联。
1.2 JDBC用途
JDBC由一组Java语言编写的类和接口组成,使用内嵌式的SQL...
分类:
数据库 时间:
2014-06-25 09:02:57
阅读次数:
390
java.sql.SQLException: ORA-01789: query block has incorrect number of result columns
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer...
分类:
数据库 时间:
2014-06-25 07:39:35
阅读次数:
481
【题目】
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the total sum of all root-to-leaf numbers.
For example,
1
...
分类:
其他好文 时间:
2014-06-25 07:32:27
阅读次数:
209
example: ./netspeed eth0
1 #!/bin/bash
2
3 INTERVAL="1" # update interval in seconds
4
5 if [ -z "$1" ]; then
6 echo
7 echo usage: $0 [network-interface]
8 echo
9 echo ...
分类:
系统相关 时间:
2014-06-25 07:24:00
阅读次数:
213
spring使用连接池有很多种方式,jdbc(不使用连接池),c3p0,dbcp,jndi,下面将分别贴代码介绍这几种:1.jdbc方式使用的是DriverManagerDataSource,DriverManagerDataSource建立连接是只要有连接就新建一个connection,根本没有连接池的作用<beanid="dataSource"class="or..
分类:
编程语言 时间:
2014-06-25 06:37:32
阅读次数:
284
今日一直在纠结数据源与连接池,这两个东西到底是什么关系呢?因为看spring中配置的明明是连接池,但是术语却叫其数据源,而且也没有看到其配置数据源,想想肯定是有原因的,遂来总结下。先抛开spring的配置,先来谈谈市场上常用的数据源和连接池:数据源:JDBC数据源,JNDI数..
分类:
其他好文 时间:
2014-06-25 06:14:45
阅读次数:
260
"Could not find SQL statement to include with refid xxx"A: 认真把每个用到xxx的地方都看一遍
分类:
数据库 时间:
2014-06-25 00:58:20
阅读次数:
216