2010-08-06 4 views
2

스프링 뷰를 가져 오기 위해 JSTL 함수를 사용할 수 있는지 궁금합니다. XML에서스프링 뷰가있는 <c:import> 사용 가능성

<div id="contentHolder"> 
    <c:import url="/foo.do?bar" /> 
</div> 

가 약자 :이 방법에 내가 오류 얻을로

<!-- 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.) 

다음과 같은 방법을 또한 아무튼

그래서 뭔가이 좋아 작동하지 않음 : <jsp:include page=<%@include file=

나는 이것이 Viewresolver 때문에 작동하지 않는다고 생각하지만 예제로 JavaScript를 사용하는 대신이 방법으로 사용할 수있는 방법이 있습니다.

답변

0

전체 경로를 시도 할 수 있습니다.