what is ForwardAction and IncludeAction in struts?
Answer Posted / ch.n.v.ganesh
The IncludeAction has the same problem that the
ForwardAction used to have .
The IncludeAction directly calls the request
dispatcher, returns a null ActionForward which bypasses the
processing of the RequestProcessor.
Unfortunately, this problem is not as easy to fix as
the ForwardAction. While the RequestProcessor does support
includes versus forwards for ActionMappings, there is no
way for an ActionForward to request an include.
The only suggestion that comes to mind is to add an
attribute to the ActionForward to request an include,
similar to the redirect attribute. The IncludeAction can
then have the same implementation as the ForwardAction, but
set an include property on the ActionForward instead. This
change would also require a new attribute to the struts-
config_1_1.dtd.
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
Can you explain the directory structure for a struts folder in brief ?
What is struts in j2ee?
What is http forward?
What is actionservlet?
What do you mean by dynaactionform?
What is the purpose of @results?
How exceptions are handled in struts application?
In which method of action class the business logic is executed?
What does it cost to replace struts?
What are the benefits of Struts framework?
What is the purpose of @before?
What is actionmapping?
What is the default suffix for struts2 action uri ?
What is a custom tag?
What is struts framework?