This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
Thanks and Regards
Omkar Patkar (SCJP 1.4)[url]http://javacollectionsnotes.blogspot.com[/url] | [url]http://omkar-myscjpexp.blogspot.com[/url]
Joined: Nov 13, 2006
Thanks for your suggestions
Joined: Nov 13, 2006
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
Joined: Feb 15, 2005
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 ]
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.
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.