I have found a situation where I would like to include the same content on many pages by importing the output of an shared ActionBean.
What I would like to do is have an ActionBean which takes some parameters and does some processing and then returns a ForwardResolution to a JSP which renders the output of that ActionBean using standard Stripes constructs like ${actionBean.myValue.
I would then like to “call” this ActionBean from other JSPs. This would have the effect of placing the output HTML from the first ActionBean into the Second JSP’s output.
How can I do this?
You can get the desired result by using the
<jsp:include>tag.SharedContentBean.java
In your JSP
web.xml
Make sure to add
INCLUDEto your<filter-mapping>tag in web.xml: