- 浏览: 8568 次
- 性别:
- 来自: 上海
-
文章列表
very classic explanation of flush and clear which is used in jpa(hibernate) and should be used very carefully as the article desribed "it has a fatal effect on performance."
http://www.developerfusion.com/article/84945/flush-and-clear-or-mapping-antipatterns/
Firefox is different from Chrome in implementing the word-wrap, but we can use one Class to make these two browsers compatible, as following:
.word_wrap{
//make Chrome word wrap
word-wrap: break-word;
// FF
white-space: pre-wrap;
}
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String fileName = req.getParameter("fileName");
String filePath = "c:/file folder/... ";
File file = new File(filePath);
int length = 0;
ServletOutputStream ...
<button> in different browser has different type if you not assign specific type. In IE8, the default type would be type="submit", not as mentioned in http://www.w3school.com.cn/tags/tag_button.asp . in FF, Chrome, default type would be "button" .
昨天去一家公司面试,做一道将100000000之内数字转成字符串的算法题,一看位数不多,想用穷举法,结果弄了半天没弄出来,今天又想了下,写了点代码。如下。
public class Convert {
static String number[] = {"零","一","二","三","四","五","六","七","八","九",};
static String d ...
form在js中提交
- 博客分类:
- j2ee
<head>
<script>
function click(){
// 可用两种方式设置form的action
// 第一种
var form = document.getElementById('form');
form.action="路径";
//第二种
document.form.action="路径";
//form中的action不能带参数,带了参数也读取不到
...
jstl包及引用声明
- 博客分类:
- j2ee
各JSTL相关引用标记
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri=&q ...