0
代碼適用於AS7(JBoss),但不適用於Tomcat 7.我正在開發Spring MVC項目,我需要從diff項目訪問頁眉和頁腳,以便插入在我的JSP後續的代碼,它在JBoss的偉大工程,但不是在tomcat7代碼適用於AS7(JBoss),但不適用於Tomcat 7
<c:import url="/webapphead.jsp" context="/common" />
這是我在Tomcat中得到的錯誤:
2013-03-22 08:46:54,942 [http-bio-8080-exec-3] DEBUG org.springframework.web.servlet.DispatcherServlet - Could not complete request
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspTagException: Unable to get RequestDispatcher for Context: "/common" and URL: "/webapphead.jsp". Verify values and/or enable cross context access.
是的,我在conf.xml中做過 – SJS 2013-03-22 13:05:22