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


Please Help Members By Posting Answers For Below Questions

How many action classes can be used in struts application?

510


What is Custom Type Converter in Struts2?

630


What do you mean by tiles in struts?

542


What is the purpose of @conversion?

603


Give an example of validates method used to avoid errors.

507






What is xml based validation in struts2?

558


What is the purpose of @stringlengthfieldvalidator annotation?

601


Which model components are supported by Struts?

567


What is the purpose of @keyproperty annotation annotation?

578


What is struts in j2ee?

529


what is ACID test for fresh engineers??what is the pattern??

2367


Difference between struts and spring? Or why use spring, if you are already using struts?

536


What is the front controller in struts2?

504


What is front controller in struts2?

552


Why do the struts tags provide for so little formatting?

586