Velocity知识点总结
1. 变量
(1)变量的定义:
#set($name = "hello") 说明:velocity中变量是弱类型的。
当使用#set 指令时,括在双引号中的字面字符串将解析和重新解释,如下所示:
#set($directoryRoot = "www" )
#set($templateName = "index.vm" )
...
分类:
其他好文 时间:
2014-07-08 20:55:01
阅读次数:
195
public class MResource {
public static int getIdByName(Context context, String className, String name) {
String packageName = context.getPackageName();
Class r = null;
int id = 0;
try {
r...
分类:
其他好文 时间:
2014-07-08 20:49:55
阅读次数:
189
二、建立第一个Demo,实现查数据库显示到页面
步骤:1.建立MySQL数据库表
2.整合SSH框架
3.用ExtJS显示
关键注意事项:
Ext.data.JsonReaderroot()中理解的含义,例如,请求的action返回的JSON
{"list":[{"id":1,"name":"hhx","phone":"1...
分类:
Web程序 时间:
2014-07-08 20:48:39
阅读次数:
242
环境:10.2.0.4集群数据库zlm10g(双节点,zlm10g1,zlm10g2)
系统:Windows 2003 Server 64Bit
内存:2G RAM
存储:ASM
目标:把集群数据库从10.2.0.4升级到10.2.0.5,包括集群软件和OEM的Patch安装
一、升级前准备:
1.查看是否存在无效对象
SQL> select object_name,statu...
Eclipse->Help->Install New Software->
Work With->add->name(cdt)
location:http://download.eclipse.org/tools/cdt/releases/juno
版本要对上:help->about eclipse查看版本
在http://www.eclipse.org/cdt/downl...
分类:
系统相关 时间:
2014-07-08 19:51:56
阅读次数:
576
jQuery 操作 input 之 checkbox 篇
HTML 代码清单:
棒球
乒乓球
羽毛球
篮球
足球
全选
1、给每一个 item 绑定事件:
$("[name='hobby']:checkbox").on('click', function(){
alert($(this).val());
});
2、获取选中的 item:
$("[name='c...
分类:
Web程序 时间:
2014-07-08 18:53:33
阅读次数:
224
创建表 列名 类型,
1...create table Student (id integer , name text, sex text, age integer)
2…create table if not exists Student (id integer , name text default '张三' , sex text n...
分类:
数据库 时间:
2014-07-08 18:47:19
阅读次数:
213
1、错误描述
java.lang.IllegalArgumentException:Can not find a java.io.InputStream with the name [inputStream] in the invocation stack.
Check the tag specified for this action
2、错误原因
3、解决办法...
分类:
其他好文 时间:
2014-07-08 18:33:04
阅读次数:
237
角色(用户组),用户多对多。
角色实体配置:
private Set users;
@ManyToMany
@JoinTable(name="t_auth_user_role",joinColumns={@JoinColumn(name="role_id")},inverseJoinColumns={@JoinColumn(name="user_id")})//配置一方
public...
分类:
系统相关 时间:
2014-07-08 18:26:30
阅读次数:
218
4.6 人性化表单
function $(str) {return(document.getElementById(str));}
function check_submit(){
if($("txt_user_name").value==""){alert("请填写用户名");return(false);}
if($("txt_user_pass").v...
分类:
编程语言 时间:
2014-07-08 15:08:33
阅读次数:
175