I worked on Struts 1.1 version 2 years back. I am familiar in working with an already existing project but am not sure on how to create one new Struts project and get it running.
I need some guidance from you experts here please. I am trying to work on a sample application that logins and redirects to Welcome.jsp page or Sorry.jsp .
Here are the steps that i followed for creating the project.
1) I am using Eclipse IDE (galileo version), Tomcat 6.0, Struts 2.0.14 versions. I downloaded them .
2) Created a Dynamic Web Project.
3) I have created Login.jsp , Welcome.jsp, Sorry.jsp in WebContent folder.
4)LoginAction.java, LoginForm.java and ValidateUser.java in src folder.
5)Created struts-config.xml in WEB-INF and updated entries correctly as shown in the snapshot.
7)Added the required jars into the classpath.
These are the steps that i have followed and i think i am correct till here.
Now how should i run this application ?
do we need to do some ant build and create a war file ? and then copy it to tomcat webapps directory ??
Or any other way to run it ??
I am not sure on how to run it from here on..CAn some one please point me to steps...
It would be of great help for me. Though i am familiar with most of the framework functionality, i am not able to run the application yet. It is blocking my progress.
You said you're using Struts 2, but everything you mention is for Struts 1--first you need to decide which version you're actually using.
Then go to the Struts 2 documentation wiki and follow the tutorial, or find another one on the net, or get a book, etc. Many of the Struts 2 books use Maven, which you may want to hold off on using for now.
Joined: Mar 18, 2010
Can some one point me good tutorial for Struts 2.0 that will guide me from scratch to end development. Anything that you found is the best/appropriate one.