OpenCms 带分页的新闻列表

<%@ page session="false" import="java.text.SimpleDateFormat,java.util.Date"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"%>


测试新闻列表页




 
 
 
 
 

        " target="_blank">
        
        <% 
         long longDate =  Long.valueOf(pageContext.getAttribute("strDate").toString()).longValue(); 
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        String createdDate = sdf.format(new Date(longDate));
        out.print(createdDate);
        %>



1}">
      ${cms:getCmsObject(pageContext).requestContext.uri}">上一页 


  
      
                   
      
      
                   ${cms:getCmsObject(pageContext).requestContext.uri}"> 
      
    
  



       ${cms:getCmsObject(pageContext).requestContext.uri}">下一页 






你可能感兴趣的:(OpenCms 带分页的新闻列表)