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

Answer Posted / kranthi kumar

As far as my knowledge is concerned.ActionForm is super
class and the bean class is sub class of ActionForm.So in
the action class it is downcasting that is performed and
downcasting in java needs an explict casting.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use dispatchaction?

579


What are the struts2 error message keys that can come during file uploading process?

607


How many instances of servlet usually run in a struts application ?

544


What are the steps of struts installation?

574


What is token used for?

511






What is the purpose of struct-config.xml in struct2?

564


What is strut action mapping?

517


What does validation interceptor?

549


Name the different types of actions found in struts.

560


How the flow of various requests happens in struts application?

536


What is the purpose of '@keyproperty'?

577


how to connect from struts to database through hibernet and where u can modify the class

2118


What is the purpose of action tag in struts.xml?

564


How can you create your custom interceptor in struts 2?

537


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

586