Reputation: 31
I have jsp, in which I want to include another jsp which is the forwarded result of struts action.
How I can include/insert using jsp:include/tiles insert or any other method? Any help would be appreciated.
Upvotes: 3
Views: 2496
Reputation: 4118
If I understood your problem correctly. In your main JSP, You want to include a content which is a result of another action. I am not sure about jsp:include or tiles, but you can do this by using
name="beanIncFwd" path="/beanIncludeTest.do"
name="beanIncForm"
) path="/beanIncAction"
and forward="/mypage.jsp"
In your main JSP, write the following at the location where you want the included contents
bean:include id="includePart" forward="beanIncFwd"/>
bean:write name="includePart" filter="false"/>
Upvotes: 1