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

What do you mean by a custom tag?

932


What is interceptor in Struts2?

952


Who makes the struts?

929


Can we use struts and spring together?

983


What is the use of jsonvalidation in struts?

977


How the flow of various requests happens in struts application?

990


What are the components of struts framework?

1011


Why do we need struts?

917


What do you mean by action errors and what are the results they force?

1030


Whats the difference between the default namespace and the root namespace?

973


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

936


How exceptions are handled in struts application?

1149


How can duplicate form submission be handled in struts 2?

971


What do struts do?

953


What is the purpose of @keyproperty annotation annotation?

959