Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1503127
  • 博文数量: 3500
  • 博客积分: 6000
  • 博客等级: 准将
  • 技术积分: 43870
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-03 20:31
文章分类

全部博文(3500)

文章存档

2008年(3500)

我的朋友

分类:

2008-05-04 20:08:07

一起学习
先看下面的代码: JSP: <%@ include file="/jsp/includes/common/header.jsp"%> <%@ page import="utility.StringUtil" %> <%@ page import="question.entity.*" %> <%@ page import="system.*" %> <%@ page import="java.text.*" %> Question Inforamtion Page <%@ include file="/jsp/includes/template/template1/header.jsp"%> <%@ include file="/jsp/system/checkAccess.jsp"%> <% String functionId = (String)request.getAttribute("etmFunctionID"); String temp = etmQuestionInformationPages.isAscending() ? "asc.gif" : "desc.gif"; String orderBy = etmQuestionInformationPages.getOrderByAttribute(); DateFormat df = new SimpleDateFormat("yyyy/MM/dd"); %>
<%=StringUtil.getDisplayLabel(request, functionId "-01","Maintain Question Template")%>
<% if (etmQuestionInformationPages.totalNoOfPages() > 0) { %> <%=etmQuestionInformationPages.hasPrevious()?"":""%> <%=appBundle.getString("lblPage1")%> <%=etmQuestionInformationPages.pageNumber()%> <%=appBundle.getString("lblPage2")%> <%=etmQuestionInformationPages.totalNoOfPages()%> <%=appBundle.getString("lblPage3")%> <%=etmQuestionInformationPages.hasNext()?"":""%> <% } else { %>
<% } %>
<% if (isAuthorized(request, functionId, "batchDelete")) { %> <% } %> <% QuestionInformation questionInformation = (QuestionInformation)etmQuestionInformationPages.next(); int offset = 0; while(questionInformation != null) { %> <% if(isAuthorized(request, functionId, "batchDelete")) { %> <% } %> <% offset ; questionInformation = (QuestionInformation)etmQuestionInformationPages.next(); } %>
<%=bundle.getString("lblIdQuestion")%> <% if(orderBy.equals("ID_QUESTION")) { %> <% } %> <%=bundle.getString("lblQuestionDesc")%> <% if(orderBy.equals("QUESTION_DESC")) { %> <% } %> <%=bundle.getString("lblQuestionCategory")%> <% if(orderBy.equals("QUESTION_CATEGORY")) { %> <% } %> <%=bundle.getString("lblQuestionCreationDate")%> <% if(orderBy.equals("QUESTION_CREATION_DATE")) { %> <% } %> <%=bundle.getString("lblStatus")%> <% if(orderBy.equals("STATUS")) { %> <% } %>
<%=questionInformation.getIdQuestion()%> <%=StringUtil.toTextField(questionInformation.getQuestionDesc())%> <%=questionInformation.getQuestionCategory()%> <%=df.format(questionInformation.getCreationDate())%> <%=questionInformation.getStatus()%> <% if(isAuthorized(request, "QUES2", "view")) { %> <%=bundle.getString("lblDetail")%> <% } %> <% if(isAuthorized(request, functionId, "edit")) { %> <%=appBundle.getString("lblEdit")%> <% } %> Copy <% if(true || isAuthorized(request, "QUES_REP", "view")) { %> <%=bundle.getString("lblReply")%> <% } %>
<% if (etmQuestionInformationPages.totalNoOfPages() > 0) { %> <%=etmQuestionInformationPages.hasPrevious()?"":""%> <%=appBundle.getString("lblPage1")%> <%=etmQuestionInformationPages.pageNumber()%> <%=appBundle.getString("lblPage2")%> <%=etmQuestionInformationPages.totalNoOfPages()%> <%=appBundle.getString("lblPage3")%> <%=etmQuestionInformationPages.hasNext()?"":""%> <% } else { %>
<% } %>
<%@ include file="/jsp/includes/template/template1/footer.jsp"%> 一般把页面分为, 菜单, 功能菜单, 详细内容, 汇总部分, 和页脚 (大家先分析一下, 待续) 下载本文示例代码


jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得jsp javaServlet 的心得
阅读(88) | 评论(0) | 转发(0) |
0

上一篇:使用JSP开发WebMail系统

下一篇:你怕不怕?

给主人留下些什么吧!~~