%@page import="java.util.Date"%> <%@page import="jbo.sys.BOARD_LIST"%> <%@ page contentType="text/html; charset=GBK"%> <%@ include file="/IncludeBegin.jsp"%><% String boardNo = CurPage.getParameter("BoardNo"); BizObjectManager boardManager = JBOFactory.getBizObjectManager(BOARD_LIST.CLASS_NAME); BizObject board = boardManager.createQuery("boardno=:boardno ").setParameter("boardno",boardNo).getSingleResult(false); String boardText = board.getAttribute("boardtext").getString(); String boardTitle = board.getAttribute("boardtitle").getString(); String publishTime = ""; String publishUserId = ""; String updateTime = board.getAttribute("updatetime").getString(); String updateUserId = board.getAttribute("updateuserid").getString(); if(updateTime==null || updateTime.equals("")){ publishTime=board.getAttribute("inputtime").getString(); }else{ publishTime=updateTime; } if(updateUserId==null || updateUserId.equals("")){ publishUserId=board.getAttribute("inputuserid").getString(); }else{ publishUserId=updateUserId; } String publishUser= NameManager.getUserName(publishUserId); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date publishDate = sdf.parse(publishTime); SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss"); publishTime = format.format(publishDate); %>
创建人:<%=publishUser%> 创建时间:<%=publishTime%>