Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are the classes used in struts?

1150


How you will enable front-end validation based on the xml in validation.xml?

1160


What is front controller in struts?

1043


What is front controller in struts2?

1159


What is the purpose of @before annotation?

1067


What is controller in struts2?

1232


If the framework doesn’t do what I want, can I request that a feature be added?

1009


Which file is used by controller to get mapping information for request routing?

1104


What is the purpose of @element annotation annotation?

1142


Can you explain aware interfaces in struts2?

1084


What are the pros of struts 2?

1025


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

1270


What is action class? What are the types of action class?

1000


What is struts2 namespace?

972


How can we work with error tags?

1047