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
What are the benefits of Interceptors in Struts2?
Can you explain the directory structure for a struts folder in brief ?
What is struts in j2ee?
What are action errors?
What types of validations are available in xml based validation in struts2?
What is the default suffix for Struts2 action URI and how can we change it?
What is interceptor struts2?
What is an interceptor stack?
What is the difference between struts and spring? Explain
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
Can we have multiple struts config files ?
What is execute method in struts?
What is the purpose of @beforeresult?
How is token generated?
How the flow of various requests happens in struts application?