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

How can we handle exceptions thrown by application in Struts2?

540


What do you mean by tiles in struts?

544


Briefly tell the two kinds of form beans.

565


Explain about tiles?

577


Explain about logic match tag?

571






What is the use of reset method of ActionForm class?

573


What does action do in struts?

540


What is the difference between struts1 and struts2?

518


How to get data from the velocity page in a action class?

567


What is value stack?

627


What is execute method in struts?

496


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

578


What is the apache struts vulnerability?

523


Explain about struts relation to html tags?

554


What is the use of forwardaction?

550