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
Does apache struts run on windows?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
How is token generated?
What are the applications of struts?
What is the purpose of struts.xml in struct2?
What is the design role played by struts?
What are the classes used in struts?
What is spring and struts in java?
Which design pattern the interceptors in struts2 is based on?
What are best practices to follow while developing Struts2 application?
What is struts and springs in java?
What are the core classes of the struts framework?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
What is action class?
Can a reducer dispatch an action?