Velocity 的应用示例
{
page = new ListTransactionProgramSubPage();
}
else if (requestFunctionName.equalsIgnoreCase("ViewProgramItem"))
{
page = new ViewTransactionProgramItemSubPage();
}
else if (requestFunctionName.equalsIgnoreCase("UpdateProgramObjStatus"))
{
page = new UpdateTransactionProgramObjStatusSubPage();
}
else if (requestFunctionName.equalsIgnoreCase("Search"))
{
page = new SearchSubPage();
}
//check if this is administratorelse if (Utilities.isAdministratorLogined(request))
{
//Utilities.debugPrintln("isAdministratorLogined : true");
if (requestFunctionName.equalsIgnoreCase("usermanagement"))
{
page = new UserManagementSubPage();
}
else if (requestFunctionName.equalsIgnoreCase("UploadFiles"))
{
page = new UploadFilesSubPage();
}
else if (requestFunctionName.equalsIgnoreCase("DownloadFile"))
{
page = new DownloadFileSubPage();
}
else if (requestFunctionName.equalsIgnoreCase("Report"))
{
page = new ReportSubPage();
}
}
else
{
文章评论
共有位Admini5网友发表了评论 查看完整内容