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 out plain java bean
class in Action class?

Answer Posted / jagadeesh b.n

Bcoz as u all know, casting are of 2 types Upcast(implicit)
and Downcast(Explicit)in core java.....Upcasting means
converting lower datatype(int) to higher datatype(long) and
Downcast means its a viceversa of upcast...(long to int)...

As u know in struts ActionForm is a superclass where as ur
Java bean program is a simple class with private fields and
set/get methods for conversion of superclass to sublclass
we use typecasting in struts...

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How exceptions are handled in struts application?

1089


What is struts validator framework?

930


What's the purpose of execute method of action class?

907


Can explain about the validations and in your project where did u used the validations?

7478


What is a custom tag?

881


What is the role of a handler in mvc based applications?

1165


Why are frameworks used?

943


What is dispatchaction?

1036


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

892


What is the purpose of struct-config.xml in struct2?

923


What is controller in struts ?

929


What is DynaActionForm?

991


Will the struts tags support other markup languages such as wml ?

922


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

957


Explain the difference between jakarta struts and apache struts?

901