Solved

how to extend classes using eclipse ide

Posted on 2006-06-14
4
459 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now