上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 85 下一页
摘要: package cn.itcast; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * 类说明:使用cookie实现浏览历史记录 * * @author 作者: LiuJunGuang * @version 创建时... 阅读全文
posted @ 2011-11-13 23:08 hibernate3例子 阅读(131) 评论(0) 推荐(0) 编辑
摘要: package cn.edu.pdsu.action; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.util.Random; import javax.imageio.ImageIO; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletRequest; import javax.servle.. 阅读全文
posted @ 2011-11-13 23:08 hibernate3例子 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 在对spring和ibatis进行整合时,大家都会用到如下的配置以在ibatis中使用spring提供的事务处理功能。<beans>...... <!-- 配置相关数据源 --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <! -- 此处省略数据库属性配置--> </bean> <!-- Transaction manager 阅读全文
posted @ 2011-11-13 20:51 hibernate3例子 阅读(920) 评论(0) 推荐(0) 编辑
摘要: @Override public PageBean findPaginated(DetachedCriteria detachedCriteria,PageBean pageBean) { // TODO 今天记得修改 去掉DetachedCriteria中的projection //根据该条件获得总记录数 Long total=this.getRowCount(detachedCriteria); List<T> datas=this.findByCriteria(detachedCriteria, pageBean.getOffset(), pageBean.getPageSi 阅读全文
posted @ 2011-11-13 16:05 hibernate3例子 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 方式一:(适用与IE浏览器,而且刷新不提示,只在点击浏览器关闭按钮的时候提示)<script type="text/javascript">window.onbeforeunload=onclose;function onclose(){if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey){return "您要离开吗?";}}</script>--------------------------------- 阅读全文
posted @ 2011-11-12 19:22 hibernate3例子 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;#define max 9int main(){ int Array[max]; /*for ( int i = 0;i < max;i ++) { Array[i] = max - i; }*/ cout <<"原始数据:"; for ( int i = 0;i < max;i ++) { cin >> Array[i]; } cout << endl; ... 阅读全文
posted @ 2011-11-12 18:48 hibernate3例子 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cmath>using namespace std;int main(){ int x; while( cin >> x) { if( x < 0 || x > 100) { cout << "Score is error !" << endl; } else if( x >= 90) { cout << "A" << endl; ... 阅读全文
posted @ 2011-11-12 18:45 hibernate3例子 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cmath>using namespace std;int main(){ double x; cout.precision(2); while( cin >> x) { cout << fixed << fabs(x) << endl; } system("pause"); } 阅读全文
posted @ 2011-11-12 18:44 hibernate3例子 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cmath>using namespace std;int main(){ const double pi = 3.1415926; double x; cout.precision(3); while( cin >> x ) { cout << fixed << 4*pi*pow(x,3)/3 << endl; } system("pause"); } 阅读全文
posted @ 2011-11-12 18:44 hibernate3例子 阅读(72) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cmath>using namespace std;int main(){ double x1,y1,x2,y2; cout.precision(2); while( cin >> x1 >> y1 >> x2 >> y2) { cout << fixed << sqrt(pow((x1-x2),2)+pow((y1-y2),2)) << endl; } system("pause"); } 阅读全文
posted @ 2011-11-12 18:43 hibernate3例子 阅读(66) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 85 下一页