Component1 - uses model1 - component1.jspcomponent1.jsp
Component2 - uses model2 - component2.jspcomponent2.jsp
Component1 --> componentComponent link --> component2Component2
<jsp:include page="component2.jsp"></jsp:include>
I want to reuse the jspJSP code from component2.jspcomponent2.jsp
in my component1.jspcomponent1.jsp
.
Is there a way to get use the component2.jspcomponent2.jsp
which uses a different model ?
I know that if both of them have same models it will work.