模版--截取字符
来源:互联网 发布:linux 设置启动内核 编辑:程序博客网 时间:2024/06/05 05:29
模版截取字符
小功能备份
//待审核日志列表
public void diaryAud(Template t, List diarylist) {
if (diarylist != null) {
Iterator itorator = diarylist.iterator();
while (itorator.hasNext()) {
Diary da = (Diary) itorator.next();
//title日志标题
String title = da.getTitle();
if (title.length() > 6) {
//页面显示5个字符后加...
title = title.substring(0, 5) + "...";
} else {
title = title;
}
String rows = t.getSection("TR_DIARYAUD");
rows = rows.replaceAll("\\{LIST_ID\\}", String.valueOf(id));
//替换title
rows = rows.replaceAll("\\{LIST_TITLE\\}", title);
rows = rows.replaceAll("\\{LIST_AUTHOR\\}", bu.getTruename());
rows = rows.replaceAll("\\{LIST_TIME\\}", time.toString());
rows = rows.replaceAll("\\{LIST_AUDITING\\}", sflag);
t.writeSection("TR_DIARYAUD", rows);
- 模版截取字符
- 模版--截取字符
- 字符截取
- 截取字符
- 字符截取
- 字符截取;字符替换;
- asp截取中英文字符
- c#截取中英文字符
- 截取字符函数
- PHP截取字符类
- PHP中截取字符
- 中英文混合字符截取
- asp 截取字符函数
- PHP中文字符截取
- 字符自动截取问题
- 字符自动截取问题
- JS截取字符
- 使用jstl截取字符
- OGRE(八):Ogre例子中的Character脱离Browser的代码
- mahout过滤推荐结果 Recommender.recommend(long userID, int howMany, IDRescorer rescorer)
- 为业务流程构筑引擎BEA WebLogic Process IntegratorTM
- mac OS X 10.9.2 gdb codesign
- Simple test ----Compute the area of a circle
- 模版--截取字符
- 使用之Web Services开发工具--Borland推出专供Java
- 理解一般指针和指向指针的指针
- iOS7开发中的新特性,开发者需要注意了
- 2014阿里实习面试经验
- VPS使用xampp Apache出现的CPU高占用率的问题
- HashMap深度分析与比较 "Java Collections
- Android ListView使用BaseAdapter与ListView的优化
- JSP的安全应用问题