If I understand your problem correctly. In your main JSP, you want to include content that is the result of another action. I'm not sure about jsp: include or tiles, but you can do this using
- To do this, you first need to add your action to the global forwards, for example,
name="beanIncFwd" path="/beanIncludeTest.do" - Add an action form corresponding to the ActionForm (for example,
name="beanIncForm" ) - add the action definition to the action tag (for example, I use the direct forward, you can use your own class here)
path="/beanIncAction" and forward="/mypage.jsp" - Add the required classes (e.g. Action and ActionForm)
In your main JSP, write the following where you want to include content
bean: enable id = "includePart" forward = "beanIncFwd" / ">
bean: write name = "includePart" filter = "false" / ">
Naved source share