2009年8月27日

零零散散的一些知识点(二)

摘要: 14,如下一个方法:public CmsContent getLastContent(CmsContent con){String hql = "select distinct c from CmsContent as c where c.catId =211 and c.ordering=3";return (CmsContent)dao.getHibernateTemplate().find(hql, null);}结果老是为空,原因是find方法的结果是一个list,是不能转换为CmsContent对象类型的。15,查文章表里id为82的文章的上一篇文章(按id升序) 阅读全文

posted @ 2009-08-27 17:30 台哥编程课堂 阅读(178) 评论(0) 推荐(0)

js复制网址

摘要: <html><head><title>点击复制网址的代码</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body bgcolor="#FFFFFF" text="#000000"><input type="button" name="Submit" onClick=&# 阅读全文

posted @ 2009-08-27 14:10 台哥编程课堂 阅读(949) 评论(0) 推荐(1)

导航