在session我的拦截器中设置一些值,我确定someValue有会话。
session.setAttribute("someValue", settingSomeValueHere);
<c:out value="${sessionScope.someValue}"/> is printing like
${sessionScope.someValue} in my JSP output.
但我可以获得相同的价值
<%= session.getAttribute("someValue")%>
在我的jsp中,添加了类似
的tld<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
下面是我战争中的罐子里面的罐子。怀疑是,是否有与此相关的不必要的罐子?
使用tomcat 7.0,在服务器启动时找到了一些日志
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.