With Apache Structs 2 frame work you can develop flexible web applications faster and easier. you can start learning by creating a simple Struts 2 Hello world example project in eclipse and hence can understand how struts 2 framework works. To start learning Struts 2 you need little knowledge on basic Java programming, XML and JSP. Then you can follow very simple baby steps to start playing with struts 2 frame work.
Prerequirements.
Struts 2 requires Servlet API 2.4 or higher, JSP 2.0 or higher, and Java 5 or higher.
Struts 2 requires Servlet API 2.4 or higher, JSP 2.0 or higher, and Java 5 or higher.
Step 1
Download latest version of Struts 2 full distribution package from Apache Struts web site
Extract the archive after downloading.
Step 2
Open eclipse
I reccomend to use latest version of Eclipse for Java EE developers
Step 3
Import A Blank Struts 2 Project into eclipse workplace.File>Import>war file
In downloaded struts 2 package open apps folder there you find some thing like Struts2-blank.war
import it into eclipse.
Step 4
Important: (Assumed that you have configured a web server in eclipse)
right click on project
Run>Run on Server.
Run>Run on Server.
Now you have run your first Struts 2 application in eclipse. now let us know how it works and make some Hello World Program our self.
No comments:
Post a Comment