why do we typecast ActionForm into out plain java bean
class in Action class?

Answer Posted / ravikiran(aptech mumbai)

Because The methods what we declared in a bean are not of
type ActionForm class type that's why we are type casting
and calling our getters and setters

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is actioninvocation?

532


How struts 2 validation works?

562


What is actionservlet?

552


Can you give an overview of how a struts application flows?

521


Which design pattern the interceptors in struts2 is based on?

482






What do you mean by action errors and what are the results they force?

564


Does apache tomcat use struts?

496


How to build struts application in eclipse?

520


What are the custom tags?

522


What is switchaction?

649


Explain how to work with error tags?

581


What is package name in struts xml?

545


What steps are required to for an application migration from Struts1 to Struts2?

601


What is the purpose of @element annotation annotation?

591


What is the purpose of @conversionerrorfieldvalidator annotation?

610