posted on 2007-08-03 10:01 智者无疆 阅读(3702) 评论(8) 编辑 收藏 所属分类: about java
评论:
# re: java:redirect 和forward的区别,DecimalFormat及DecimalFormat的使用 智者无疆
Posted @ 2007-08-03 10:23
about forward:在服务器端,用request.getPrameter得不到forward的URL中加入的参数.因为在浏览器的地址栏里根本不会显示URL,服务器要想用getPramater得到参数只能用redirect:这样,服务器先向浏览器返回一个response,顺带着也把URL显示到地址栏里了.然后再发送到服务器端. 回复 更多评论
# re: java:redirect 和forward的区别,DecimalFormat及DecimalFormat的使用 myself
Posted @ 2007-08-03 16:25
//截取字符串中英文都转成字符型
public String substring(String str, int toCount) {
int reInt = 0;
String reStr = "";
if (str == null) return "";
char[] tempChar = str.toCharArray();
for (int kk = 0; (kk < tempChar.length && toCount > reInt); kk++) {
String s1 = str.valueOf(tempChar[kk]);
byte[] b = s1.getBytes();
reInt += b.length;
reStr += tempChar[kk];
}
return reStr;
} 回复 更多评论
# re: java:redirect 和forward的区别,DecimalFormat及DecimalFormat的使用 zhanglijun
Posted @ 2007-08-15 19:59
http://community.csdn.net/Expert/topic/5678/5678786.xml?temp=.434704 回复 更多评论
# re: java:redirect 和forward的区别,DecimalFormat及DecimalFormat的使用[未登录] lijun
Posted @ 2007-08-17 16:18
http://blog.sina.com.cn/s/blog_415bd707010007zo.html
CallableStatement cstmt = session.connection().prepareCall("{call pro_orderArticle(?, ?, ?, ?)}");
cstmt.setInt(1, nodeId);
cstmt.setString(2, oldOrderPath);
cstmt.setString(3, orderPath);
cstmt.setString(4, parentPath);
try {
cstmt.execute();
} finally {
cstmt.close();
} 回复 更多评论
# re: java:redirect 和forward的区别,DecimalFormat及DecimalFormat的使用[未登录] lijun
Posted @ 2007-08-17 18:44
DROP PROCEDURE IF EXISTS vonibo_demo.test;
CREATE PROCEDURE vonibo_demo.test
BEGIN
DECLARE userid int default 1;
DECLARE stopFlag int default 0;
DECLARE cursor_name CURSOR
FOR select user_id from wb_product where product_id=1;
DECLARE CONTINUE HANDLER FOR NOT FOUND set stopFlag=1;
OPEN cursor_name;
REPEAT
FETCH cursor_name INTO userid;
select * from wb_user where user_id=1;
UNTIL stopFlag=1 END REPEAT;
CLOSE cursor_name;
END;
回复 更多评论
# lucene的学习资源 zhanglijun
Posted @ 2008-03-18 14:10
Lucene学习资源
1.基于Java的全文索引引擎Lucene简介
http://www.chedong.com/tech/lucene.html
2.Lucene中国
http://www.lucene.com.cn/
3.Lucene官方网站
http://lucene.apache.org/
4.Matrix论坛的Lucene版块
Lucene与搜索引擎技术
回复 更多评论