public class SpringappController implements Controller { /** Logger for this class and subclasses */
static Logger logger = Logger.getLogger(SpringappController.class); jakarta-commons import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class SpringappController implements Controller { /** Logger for this class and subclasses */ protected final Log logger = LogFactory.getLog(getClass()); 4. 新建Web模块,选菜单File-New,给Web模块取名为springapp
public class SpringappController implements Controller { /** Logger for this class and subclasses */ // protected final Log logger = LogFactory.getLog(getClass());
<%-- Redirected because we can't set the welcome page to a virtual URL. --%> <c:redirect url="/hello.htm"/> 利用JSTL的<c:out>标记,把从Model提取的,传递给View的当前日期和时间作为输出。
springapp/war/WEB-INF/jsp/hello.jsp
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<html> <head><title>Hello :: Spring Application</title></head> <body> <h1>Hello - Spring Application</h1> <p>