ervalerio
Mar 15th, 2006, 10:20 AM
Hi,
i have a jsp file, A.jsp that has an associated controller. inside A, i do a standard inclusion like:
<div id="B">
<%@ include file="/WEB-INF/jsp/B.jsp" %>
</div>
also B has a controller associated, in particular like this:
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<props>
....
<prop key="/B.htm">BController</prop>
....
</props>
</property>
</bean>
where B controller is supposed to put some vars in the context. the problem occurs when a user accesses A.jsp, and the included B.jsp is included but it can't find needed variables.
any suggestion is very appreciated !
valerio
i have a jsp file, A.jsp that has an associated controller. inside A, i do a standard inclusion like:
<div id="B">
<%@ include file="/WEB-INF/jsp/B.jsp" %>
</div>
also B has a controller associated, in particular like this:
<bean id="urlMapping"
class="org.springframework.web.servlet.handler.SimpleUrlH andlerMapping">
<property name="mappings">
<props>
....
<prop key="/B.htm">BController</prop>
....
</props>
</property>
</bean>
where B controller is supposed to put some vars in the context. the problem occurs when a user accesses A.jsp, and the included B.jsp is included but it can't find needed variables.
any suggestion is very appreciated !
valerio