java x forward for_java:redirect 和forward的区别,DecimalFormat及DecimalFormat的使用

posted on 2007-08-03 10:01 智者无疆 阅读(3702) 评论(8)  编辑  收藏 所属分类: about java

bc1db81680c8b7afcec605657ba95dc0.png

评论:

# 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与搜索引擎技术

回复  更多评论

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值