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
What do you mean by a custom tag?
What is interceptor in Struts2?
Who makes the struts?
Can we use struts and spring together?
What is the use of jsonvalidation in struts?
How the flow of various requests happens in struts application?
What are the components of struts framework?
Why do we need struts?
What do you mean by action errors and what are the results they force?
Whats the difference between the default namespace and the root namespace?
What do you mean by the abstract package in struts2, and what is its utilization?
How exceptions are handled in struts application?
How can duplicate form submission be handled in struts 2?
What do struts do?
What is the purpose of @keyproperty annotation annotation?