why do we typecast ActionForm into out plain java bean
class in Action class?
Answer Posted / johndoe
Acctually not realy thinking you should ask that, i mean
well ask, the answer is: to use it's methods.
But to understand it i recomend reading something about
polymorphy which explains why we're casting the action-
form, hope i understood right.
Regards
Jan
| Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
Are interceptors thread safe?
How we can install struts?
What is the use of forwardaction?
Why are frameworks used?
What is the purpose of @element annotation annotation?
What is DynaActionForm?
What is the default suffix for struts2 action uri ?
What are the important methods of actionform?
How do I access token?
What is the purpose of form-be tag in struct-config.xml?
What configuration files are used in struts?
What types of validations are available in xml based validation in struts2?
In struts.xml, what does the attribute "method" stands for in the "action" tag?
How is the action mapping specified?
Explain the difference between plain-validator and field-validator in struts?