Struts 2 Hello World Application in Elipse
Here, we are going to learn how to develop "Struts 2 Hello World" application in elipse. Eclipse provides the environment to develope J2EE application easily.
If you want to develope J2EE application easily and fast then you must have to use a IDEs either Eclipse or NetBean. Now a days Eclipse is very popular for developing any type of
java application. It is so flisible for this.
Follow the following steps for developing the struts 2 application with eclipse.
Step 1: First of all Download the Eclipse from the following url:
Step 2: Extract this and run. After running elipse you must have to create a project. Select the "File menu" and follow the following instrutction in given image.
Step 3: Click on "Other" then you got the following dialog box:
Step 4: Click on "Next" commond button, again open a dialog box:
Setp 5: Again, click on "Next" command button and open a dialog box:
Step 6: Finally, click on "Finish" command button. Then you got the following:
Step 7: Now, you got a J2EE project in left hand side which have the folloiwng direcotry structure:
Step 8: Copy the following jar files and paste into lib direcotry under the "WebContent => WEB-INF = > lib ". Then you got the following process:
Step 9: Create a JSP file like: index.jsp
Step 10: Click on JSP then you got the folloiwng dialoag box:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
<title>Hello World Application</title>
<table border="0" cellpadding="0" cellspacing="0"
<h2>Welcome to Developerhelpway.com</h2>
<h3>Hello World Application</h3>