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
What is Custom Type Converter in Struts2?
What do you mean by actionform?
What are the Core classes of Struts Framework?
How you will make available any message resources definitions file to the struts framework environment?
how to develop the submit and search operations in single jsp using struts?
How is declarative handling of exceptions done in struts ?
What is the need of struts?
What is the purpose of @expressionvalidator annotation?
State the procedure for using forward attribute of link tag’s.
Explain about logic match tag?
How to use dispatchaction?
What is the purpose of @results?
What steps are required to for an application migration from Struts1 to Struts2?
What is the purpose of struts.xml in struct2?
Do you need an alignment after replacing struts?