Tutorial Create Struts 2 Application in Eclipse. Struts. 2 Tutorial. Welcome to the Part 2 of 7 part series where we will explore the world of Struts 2 Framework. In previous article we went through the basics of Struts. Architecture diagram, the request processing lifecycle and a brief comparison of Struts. Struts. 2. If you have not gone through the previous article, I highly recommend you to do that before starting hands on today. Things We Need. Before we starts with our first Hello World Struts 2 Example, we will need few tools. JDK 1. 5 above downloadTomcat 5. Glassfish, JBoss, Websphere, Weblogic etc downloadEclipse 3. Apache Struts. 2 JAR files download. Following are the list of JAR files required for this application. Note that depending on the current version of Struts. Our Goal. Our goal is to create a basic Struts. Login page. User will enter login credential and if authenticated successfully she will be redirected to a Welcome page which will display message Howdy, lt username. If user is not authenticated, she will be redirected back to the login page. Getting Started. Let us start with our first Struts. Open Eclipse and goto File New Project and select Dynamic Web Project in the New Project wizard screen. After selecting Dynamic Web Project, press Next. Write the name of the project. For example Struts. Hello. World. Once this is done, select the target runtime environment e. Apache Tomcat v. 6. This is to run the project inside Eclipse environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |