permaculture playing cards*
The moose likes Struts and the fly likes How to Configure Struts with Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to Configure Struts with Eclipse" Watch "How to Configure Struts with Eclipse" New topic
Author

How to Configure Struts with Eclipse

manju shankar
Greenhorn

Joined: Nov 13, 2006
Posts: 20
Hi,
I am learning Struts i want to do a sample project using Struts framework
but i dont know how to configure struts with Eclipse

please suggest me how to configure struts in Eclipse i am using Tomcat Server. It will be easy for me if you provide SCreen shots of configuration
chinna sankar
Greenhorn

Joined: Mar 06, 2005
Posts: 22
As per my knowledge we need to opt for myecilipse IDE instead of eclipse. Myecilpse IDE is commercial one, it allows us to go for trail version.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
While MyEclipse is a great product at a great price, it is not absolutely necessary to use it when developing Struts applications. You can do quite well just using the WTP (Web Tools Platform) that is available free.

Just make sure you have Eclipse version 3.2 loaded. Then select help-->Software Updates-->Find and Install. Then select "search for new features to install" and then make sure that "callisto" is checked. You will then see options for downloading the WTP.


Merrill
Consultant, Sima Solutions
omkar patkar
Ranch Hand

Joined: Aug 25, 2005
Posts: 231
Hi manju ....try this :-

http://struts.apache.org/1.2.4/faqs/eclipse.html

Hope this one helps


Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
manju shankar
Greenhorn

Joined: Nov 13, 2006
Posts: 20
Thanks for your suggestions
manju shankar
Greenhorn

Joined: Nov 13, 2006
Posts: 20
Hi merril, I followed till what you told but AfterChecking callisto i selected WTP beside that there are many options like
NEW REMOTE SITE,
NEW LOCAL SITE,
NEW ARCHIEVED SITE,

and Import SItes, Export SitEs out of that which one i should choose to install STRUTS
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
There is no "Struts" plugin available through this channel. The tools available through Callisto are general Web development tools. While they can be used to develop Struts applications, they are not exclusive to Struts. The main plugins you need are the Web Standard tools and the J2EE Standard tools and their dependencies.

Once you have the web development environment set up, I've found that the best way to set up a Struts project is to import the struts-blank.war that comes with the Struts download and make that the template for your project.

The "new Local", "new remote", etc. simply give you the ability to point the updater to either local or remote sites that are not in the standard list to install new plugins. They are not useful when setting up a basic web development environment.
[ February 19, 2007: Message edited by: Merrill Higginson ]
Murali Manohar
Greenhorn

Joined: Jun 04, 2007
Posts: 2

Hi,

You can configure struts with the tutorial in the IBM link

http://www.ibm.com/developerworks/library/os-ecstruts/
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you look at the date in that artcile, it's April of 2004, and the Version of Eclipse they're talking about is 2.1, which is several versions ago. If you follow their link to download Easy Struts, you will see that it's "under refactoring". Since it's been "under refactoring" for over a year now, the chances are that there may never be a new release. I tried Easy Struts some time ago, but could never get it to work right.

I'd still recommend you stick with the WTP, which continues to get new release updates and is part of the mainstream of Eclipse. So what if you don't get a GUI to manage the struts-config.xml file? You do get control-space prompting, which is almost as good.
v ray
Ranch Hand

Joined: Mar 15, 2007
Posts: 223
What do you want exactly?
What I do is, I create the directory structure properly, and then import that through eclipse, and then go on modifying the files as I want. What is the problem with this?
Its pretty simple, create your web application folder, inside that your web-inf folder- having classes, src,lib and other such relevant folders.
also have your struts-config.xml and web.xml inside the web-inf folder.
Have your jsp's outside the web-inf folder... then just import these files through eclipse.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Configure Struts with Eclipse