国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
Velocity 的應(yīng)用示例3
Velocity 的應(yīng)用示例
副標(biāo)題:
作者:未知 文章來(lái)源:jakarta.apache.org 點(diǎn)擊數(shù): 166 更新時(shí)間:2005-4-1
TEXT-INDENT: 2em">ps.setObject(index, parameter);

}

}

catch (Exception e)

{

//Utilities.debugPrintln(e.getMessage());

e.printStackTrace();

}

}

public static void closeDbConnection(java.sql.Connection con)

{

try

{

con.close();

}

catch (Exception e)

{

Utilities.debugPrintln(e.getMessage());

}

}

public static String getResultPage(String title, String message, String jumpLink,VelocityServlet servlet, HttpServletRequest request,HttpServletResponse response, Context context)

{

Template template = null;

context.put("MessageTitle", title);

context.put("ResultMessage", message);

context.put("JumpLink", jumpLink);

try

{

template = servlet.getTemplate("/templates/Message.htm");

StringWriter sw = new StringWriter();

template.merge(context, sw);

return sw.toString();

}

catch (Exception ex)

{

return "error get template Message.htm " + ex.getMessage();

}

}

public static String mergeTemplate(String fileName, VelocityServlet servlet, Context context)

{

Template template = null;

try

{

template = servlet.getTemplate(fileName);

StringWriter sw = new StringWriter();

template.merge(context, sw);

return sw.toString();

}

catch (Exception ex)

{

return "error get template " + fileName + " " + ex.getMessage();

}

}

}

< p="">

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
java 字符串模板解析
Velocity是如何工作的
velocity 例子
CHAPTER 6 理解模板和上下文 - Velocity空間 - BlogJava
velocity基礎(chǔ)教程
groovy 模板引擎實(shí)現(xiàn)原理分析
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服