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

Answer Posted / kiran

Action Form is basically sub class of Action Form Class.
When we want to assign super class with subclass object type
casting is required.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why was reload removed from struts (since 1.1)?

559


What is the differences between struts1 and struts2?

538


What is struts and why it is used?

509


What are the two types of validations supported by validator framework?

593


What is the purpose of struts.xml in struct2?

683






How we can configured action mapping in struts?

589


What is the purpose of @before annotation?

595


What is the purpose of execute() method?

582


How do I install struts?

576


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

571


What are the custom tags?

542


What are different ways to create Action classes in Struts2?

604


What is actionservlet?

566


How many struts config file in a struts application?

533


What is the significance of logic tags in Struts?

592