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


Please Help Members By Posting Answers For Below Questions

What are the contents on web.xml in struts application ?

518


What is struts actionmapping?

525


What is struts xml?

441


How many action classes can be used in struts application?

514


How struts control data flow?

540






In which order struts framework searches for a message bundle?

562


What is ognl?

600


Can I have html form property without associated getter and setter formbean methods?

575


What is http redirect?

569


What is the configuration files used in struts?

529


What is struts framework in java?

535


What is action servlet in struts?

544


Are actions thread safe?

540


Can explain about the validations and in your project where did u used the validations?

6413


What are inner class and anonymous class?

549