why do we typecast ActionForm into our plain java bean
class in Action class? What is the reason?

Answer Posted / kartheeswari

ActionForm is a parent class for our userdefined formbean.
Ex. MyBean,means which has to be extended the ActionForm.

when we try to assign a parent class into subclass we need
downcasting.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the bundled validators?

594


Explain about token feature in struts?

560


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

563


What is the design role played by struts?

557


What is the use of namespace in action mapping in Struts2?

578






What kind of mvc is struts 2?

559


What is dispatchaction?

630


How can we display validation errors on jsp page?

539


What's mvc pattern ?

590


What is spring hibernate and struts in java?

492


Who wrote struts?

556


What is purpose of execandwait interceptor?

583


What is the purpose of struts.properties in struct2?

531


Who makes the struts?

551


How we can configured action mapping in struts?

583