Just download the latest version of Eclipse Europa, making sure to select the option "Eclipse IDE for Java EE Developers". Then download the latest version of Struts 1, which is currently version 1.3.8 from the Struts home page and unzip it. Then all you have to do is import the struts-blank-1.3.8.war file that comes with the download into eclipse and you have a Struts application set up in eclipse that you can then add elments to.
Before you can test your application in Eclipse, you will have to set up an application server such as Tomcat and then configure Eclipse so that it knows where the server is. If you don't know how to do this, consult the Eclipse help documentation.
Thank you for your response. I have downloaded Eclipse and configured with Tomcat 6. I did some servlets and JSP prgrams on that. Can you tell me how to import Struts into Eclipse, and how to set up a Struts application in Eclipse.
File->Import->Web->War File. Click the next button and browse for the struts-blank-1.3.8.war file that came with your Struts download. Select Tomcat as the target runtime and click Finish. You now have a Struts project with all the essential elements.
I successfully downloaded and configured struts with eclipse as you told. Now I want to test it. where I need to store my jsp's and Action classes?As per my knowledge, Jsp's go under pages folder and Action classes go under build->classes. correct me if I am wrong.
I downloaded struts1.3.8 and configured struts-blank.war with eclipse IDE.Under JavaResources:src i created a package named actions and I created an action class.Under pages folder(came along with struts-blank.war) I created an Jsp page.I dont know how to use Ant. I came to know that struts ships with ant build.xml file,but I didn't see anything under Web-Inf/src.what i have to do to run my first application?
You don't need Ant to deploy and run a Struts project in Eclipse.
Once you've imported the struts-blank war file, deploying and running a Struts application in Eclipse is no different than deploying and running any other web application from Eclipse.
If you don't know how to deploy and run a web application from Eclipse, you will have to spend some time getting familiar with the Eclipse Web tools. The best way to do this is to read the Eclipse help documentation. I'd suggest you read the entire section: Web Application Development User Guide->Using the Server tools->Application Testing and Publishing. [ April 24, 2008: Message edited by: Merrill Higginson ]
Merrill Higginson wrote:File->Import->Web->War File. Click the next button and browse for the struts-blank-1.3.8.war file that came with your Struts download. Select Tomcat as the target runtime and click Finish. You now have a Struts project with all the essential elements.
when i import struts-blank.war file from jakarata-struts-1.1, i am getting an error in validation.xml,
which is there in WEB-INF folder, can any one help out
This is a blank Validator form file with a commented examples.
<!-- An example global constant
<formset> i got err in this line stating that-->the content element type “formset” is incomplete,it must match “(constant *,form+)”
<!-- An example form
end example form -->
<!-- An example formset for another locale