Link to home
Start Free TrialLog in
Avatar of srafi78
srafi78Flag for United States of America

asked on

how to extend classes using eclipse ide

how do i extend a class like DynaActionForm in my class using eclipse ide
Avatar of Mick Barry
Mick Barry
Flag of Australia image

When you create your new class specify DynaActionForm as the Superclass.

Or if you have already created the class then just specify it in the class

public class MyClass extends DynaActionForm
{
....
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of runa_paathak
runa_paathak

If you are creating your new class by choosing New-Class from file menu or package explorer, you can choose to extend DynaActionForm in that wizard. Of course, for any of this to work, your struts.jar must be in the project's classpath. Check if you have struts jar file in your project's build path by right-clicking on the project name and choosing Properties. Then choose Libraries tab and see if the jar file is there. If it isn't choose Add External Jars and add the path to your to struts jar file.