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
Why is it called struts?
Lists the bundled validators in struts?
What is the purpose of @stringlengthfieldvalidator annotation?
How to use dispatchaction?
how to develop the submit and search operations in single jsp using struts?
What is the purpose of @requiredstringvalidator?
What are the classes used in struts?
how to connect from struts to database through hibernet and where u can modify the class
Can you give an overview of how a struts application flows?
What is difference between spring and struts?
How can we handle exceptions thrown by application in Struts2?
What is java struts?
What is apache struts used for?
Which configuration file is used for storing jsp configuration information in struts?
How to combine the struts with velocity template?