Java 使用的可能性<;c:进口>;春天的景色
我想知道是否有可能使用JSTL函数导入spring视图 所以像这样的事情:Java 使用的可能性<;c:进口>;春天的景色,java,spring,jsp,spring-mvc,jstl,Java,Spring,Jsp,Spring Mvc,Jstl,我想知道是否有可能使用JSTL函数导入spring视图 所以像这样的事情: <div id="contentHolder"> <c:import url="/foo.do?bar" /> </div> 以下方式也不起作用: 您可以尝试url的完整路径您可以尝试url的完整路径 <!-- Viewresolver --> <b:bean id="viewResolver" class="org.springframework.web
<div id="contentHolder">
<c:import url="/foo.do?bar" />
</div>
以下方式也不起作用:
您可以尝试url的完整路径您可以尝试url的完整路径
<!-- Viewresolver -->
<b:bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<b:property name="viewClass"><b:value>org.springframework.web.servlet.view.JstlView</b:value></b:property>
<b:property name="prefix"><b:value>/WEB-INF/jsp/</b:value></b:property>
<b:property name="suffix"><b:value>.jsp</b:value></b:property>
</b:bean>
Circular view path [/WEB-INF/jsp/foo/index.jsp]: already dispatched to this view path within the same request [/BAR/WEB-INF/jsp/foo/index.jsp]. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)