<%@ page import="org.springframework.web.context.WebApplicationContext" %> <%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %> <%@ page import="org.springside.bookstore.service.logic.BookStockChecker" %> <%@ taglib prefix="authz" uri="http://acegisecurity.org/authz" %> <%-- Author: calvin --%> <%@ page contentType="text/html;charset=UTF-8" %> <%@ include file="/common/taglibs.jsp" %> <%@ include file="/common/meta.jsp" %> " type="text/css" rel=stylesheet> " type="text/css" rel=stylesheet>
书店管理后台
<% //顺便demo一下纯jsp里怎么取得spring管理的bean. WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(application); BookStockChecker checker = (BookStockChecker) context.getBean("bookStockChecker"); pageContext.setAttribute("books",checker.getLowStockBooks()); %>

缺货图书

低库存图书
《${book.name}》${book.inventory}本

待发订单

等待发货订单

登陆用户

当前登陆用户