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
Is there a particularly good ide to use with struts?
What is actionservlet?
What should be the name of xml file used for validation in struts?
What is the difference between plain-validator and field-validator?
What are construction struts?
What is the difference between struts and spring? Explain
How many instances of servlet usually run in a struts application ?
What is difference between spring and struts?
What are disadvantages of Struts?
What is the purpose of plug-in tag in struct-config.xml?
How do you find the struts version being used in a project?
What are the major differences between html tags and strut specific html tags?
What are the cons of struts 2?
What is the purpose of form-beans tag in struct-config.xml?
Do I have to credit struts on my own website?