IncludeAction

IncludeAction

What is IncludeAction?

View Answers

November 22, 2010 at 11:51 AM

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.









Related Tutorials/Questions & Answers:
IncludeAction
IncludeAction   What is IncludeAction
IncludeAction
IncludeAction  What is IncludeAction
Advertisements
IncludeAction
IncludeAction  What is IncludeAction
difference between ForwardAction and IncludeAction
difference between ForwardAction and IncludeAction  What is the difference between ForwardAction and IncludeAction

Ads