What is IncludeAction?
Hi friends,
The IncludeAction class is useful when you want to integrate Struts into an application that uses Servlets. Use the IncludeAction class provides a mechanism to include the contents of a specified URL.
IncludeAction included resulting resource in the HTTP response . In the JSP which don't use struts for include we do
<jsp:include page="/pages/Servlet1"/>
In struts JSP
<jsp:include page="/AppA/hello.do" />
In the struts-config.xml
<action path="/hello" parameter="/pages/Servlet1" type="org.apache.struts.actions.IncludeAction" />
Thanks.