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
How exceptions are handled in struts application?
What is struts validator framework?
What's the purpose of execute method of action class?
Can explain about the validations and in your project where did u used the validations?
What is a custom tag?
What is the role of a handler in mvc based applications?
Why are frameworks used?
What is dispatchaction?
If the framework doesn’t do what I want, can I request that a feature be added?
What is the purpose of struct-config.xml in struct2?
What is controller in struts ?
What is DynaActionForm?
Will the struts tags support other markup languages such as wml ?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
Explain the difference between jakarta struts and apache struts?