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

Are interceptors thread safe?

572


Explain about logic match tag?

573


Which interceptor is responsible for file upload support?

579


What is the purpose of @emailvalidator?

563


How exceptions are handled in struts application?

538






Can you explain custom tag?

575


How do struts work?

526


How you will make available any message resources definitions file to the struts framework environment?

561


How can forward action be used to restrict a strut application to mvc?

524


When it’s useful to use IncludeAction?

556


What is http redirect?

569


What configuration changes are required to use Tiles in Struts?

570


What is the use of interceptor?

524


What is the difference between struts and spring? Explain

487


Difference between html tags and struts specific html tags

515