How to setup a Basic Struts Project Using Eclipse IDE

zhaozj2021-02-17  47

How to setup a Basic Struts Project Using Eclipse IDE

Legal Disclamer

* DISCLAIMER -. This simple How-To shows you one of many ways to setup a working project usingthe Struts framework This is mainly geared toward struts users who are new to Eclipse, anddon't want to spend a lot of time figuring out the differences Between their old ide (if any) and this one.i will also apologize ahead of time.

In this how-to, i will demonstrate (use Eclipse 2.0.1) How to setup, compile, run,

And debug the struts-example Web Application That Bundled with the distribution.

Next, I will modify the code to pull some data from a mysql database using the popular

RELATIONAL MAPPING TOOL OJB. (This Is Actually Quite Simple)

Let's get started

Before we begin, you will need to create a Directory Somewhere To Store Your Project.

I Typically Use C: / Personal / Development / Projects / (Some Project)

Once That's Done, Extract The Struts-Example.war to That Directory

(Using your favorite zip utility)

DELETE The Meta-INF folder Because this will be create During the build / jar / war process.

Add a build.xml file to the project root. I Use Something Like this:

destdir = "$ {build.dir}"

Debug = "on"

DepRecation = "ON">

转载请注明原文地址:https://www.9cbs.com/read-28595.html

New Post(0)