随笔 - 3, 文章 - 6, 评论 - 0, 引用 - 0
数据加载中……

2006年6月6日

中文参数乱码

使用java.net.URLEncoder.encode()可以对要传递的中文进行编码

encode:
word = java.net.URLEncoder.encode("中文字符","GB2312");

decode:
//request.setCharacterEncoding("GBK");
   String str=request.getParameter("word");
   str=java.net.URLDecoder.decode(str,"GB2312");
   str=new String(str.getBytes("ISO-8859-1"));

posted @ 2006-11-13 14:48 drh0r 阅读(269) | 评论 (0)编辑 收藏

报表资料网址

http://blog.chinaunix.net/article.php?articleId=49561&blogId=10060      JasperReport Nosts

http://blog.csdn.net/happy4nothing/archive/2004/11/23/192197.aspx      JasperReport学习之路

posted @ 2006-06-06 20:25 drh0r 阅读(209) | 评论 (0)编辑 收藏

JasperReports学习

Parameter REPORT_DATASOURCE
When filling a report, we always have a data source object either directly supplied by the parent
application or created behind the scenes by the reporting engine when a JDBC connection is supplied.
This built-in parameter will allow us access to the report's data source in the report expressions or in the
scriptlets, for any reason we might have to do that.

posted @ 2006-06-06 19:25 drh0r 阅读(201) | 评论 (0)编辑 收藏