Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the difference between the ForwardAction and the IncludeAction in the Struts?
The main difference between the ForwardAction and the IncludeAction is that you need to use IncludeAction only if the action is going to be included by another action or JSP.
Therefore, if you have code in your JSP that looks like this:
  <jsp:include page="/someWebApp/someModule/someAction.do"/>
the action could not use a ForwardAction because it would forward control to the new action rather than including its output within the output of the JSP, or throw a IlligalStateException if the output buffer is already committed.