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...

why do we typecast ActionForm into our plain java bean
class in Action class? What is the reason?

Answer Posted / kranthi kumar

As far as my knowledge is concerned.ActionForm is super
class and the bean class is sub class of ActionForm.So in
the action class it is downcasting that is performed and
downcasting in java needs an explict casting.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of global-forwards tag in struct-config.xml?

1023


Which interceptor is responsible for i18n support?

990


What is difference between interceptors and filters?

1080


What does modeldriven interceptor?

1150


Name some useful annotations introduced in Struts2?

1014


What do you mean by the abstract package in struts2, and what is its utilization?

989


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

1066


What is the purpose of @stringlengthfieldvalidator annotation?

1152


What is action class?

1103


How is forward action used for integration?

1075


What are the classes used in struts?

1145


How action mapping is configured in Struts?

1151


Which design pattern the interceptors in struts2 is based on?

980


How exceptions are handled in struts application?

1210


How we can configured action mapping in struts?

1059