<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%-- jstl1.2--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 

<%@ page isELIgnored="false" %> 

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>NewArticleList Component</title>
    </head>
    <body>
          <!-- #webComponent.start.newArticleList -->
                <%
                // #webComponent.start.newArticleList
                miincms.view.pages.uiCompont.NewArticleListComponent newArticleList
                        =new miincms.view.pages.uiCompont.NewArticleListComponent (
                            request, response, out
                         );
                //返回记录数
                int max=10;
                //标题长度，字符
                int titleLen=50;
                newArticleList.init(max,titleLen);
                
               // (new miincms.view.pages.uiCompont.NewArticleListComponent (
                         //   request, response, out
                        // )).getAttribute("aa");
                    %>
                <div id="webComponent">
                    
                    <p id="webComponent_id_232352" class="webComponent_edit" style="display:block;">
                                                
                    </p>
                    
                    <div class="webComponent_content">
                        <p>最新</p>
                        <p>
                             <ul>
                                 <c:if test="${NewArticleListCms!=null}" >  
                            <c:forEach items="${NewArticleListCms}" var="article">
                                <li>
                             <a href="/article.jsp?aid=<c:out value="${article.aid}"/>" >
                                    <c:out value="${article.title}"></c:out>
                               </a></li>                                
                            </c:forEach>
                               </c:if> 
                             </ul>
                        </p>
                    </div>
                    
                </div>
                 <!-- webComponent.end.newArticleList -->
                 
    </body>
</html>
