Skip to main content
added 3 characters in body; edited tags; edited title
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

Use jspJSP code of one componentComponent which is a componentComponent link in another componentComponent where we need to render it in JAVA DXA 1.5 Java

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.

Use jsp code of one component which is a component link in another component where we need to render it in JAVA DXA 1.5

Component1 - uses model1 - component1.jsp

Component2 - uses model2 - component2.jsp

Component1--> component link --> component2

        <jsp:include page="component2.jsp"></jsp:include> 

I want to reuse the jsp code from component2.jsp in my component1.jsp.

Is there a way to get use the component2.jsp which uses a different model  ?

I know that if both of them have same models it will work.

Use JSP code of one Component which is a Component link in another Component where we need to render it in DXA 1.5 Java

Component1 - uses model1 - component1.jsp

Component2 - uses model2 - component2.jsp

Component1  --> Component link --> Component2

<jsp:include page="component2.jsp"></jsp:include> 

I want to reuse the JSP code from component2.jsp in my component1.jsp.

Is there a way to get use the component2.jsp which uses a different model?

I know that if both of them have same models it will work.

Source Link

Use jsp code of one component which is a component link in another component where we need to render it in JAVA DXA 1.5

Component1 - uses model1 - component1.jsp

Component2 - uses model2 - component2.jsp

Component1--> component link --> component2

        <jsp:include page="component2.jsp"></jsp:include> 

I want to reuse the jsp code from component2.jsp in my component1.jsp.

Is there a way to get use the component2.jsp which uses a different model ?

I know that if both of them have same models it will work.