Solved

how to extend classes using eclipse ide

Posted on 2006-06-14
4
462 Views
Last Modified: 2013-11-23
how do i extend a class like DynaActionForm in my class using eclipse ide
0
Comment
Question by:srafi78
4 Comments
 
LVL 92

Expert Comment

by:objects
ID: 16908241
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
{
....
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 16909061
You can save yourself a lot of time by right-clicking the class in the package explorer and choosing:

Source|Override/Implement Methods...
0
 
LVL 3

Expert Comment

by:runa_paathak
ID: 16909141
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.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javap bin 2 40
Java string replace 11 54
Is Applet the way to go for my drag and drop system? 8 25
Running JavaFX on the Raspberry Pi 27 38
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question