📄 news.jsp
字号:
<%@ taglib prefix="tiles" uri="http://jakarta.apache.org/struts/tags-tiles" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<tiles:importAttribute name="sourceName"/>
<tiles:importAttribute name="items"/>
<div class=side>
<h3><spring:message code="news.from"/> <c:out value="${sourceName}"/></h3>
<c:choose>
<c:when test="${items == null}">
<div class="news"><fmt:message key="news.na"/></div>
</c:when>
<c:otherwise>
<c:forEach items="${items}" var="item">
<div class="news"><a href="<c:out value="${item.link}"/>" target="_new"><c:out value="${item.title}"/></a></div>
</c:forEach>
</c:otherwise>
</c:choose>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -