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

How the flow of various requests happens in struts application?

530


What is difference between actionform and dynaactionform?

591


What do you mean by tiles in struts?

540


How can we upload files in Struts2 application?

582


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

563






Are struts thread safe?

556


Why we use struts in java?

509


What is defeult result type?

625


Are the struts tags xhtml compliant ?

538


How does interceptor work in struts2?

503


What is struts xml?

437


Explain the difference between plain-validator and field-validator in struts?

522


Why actionservlet is singleton in struts?

588


Which file is used by controller to get mapping information for request routing?

533


What are the components of struts framework?

577