Tutorial Content:
- Introduction to struts 2
- configuring struts 2 in eclipse
- Struts 2 hello world example
- Login page with validation in struts 2
- Struts 2 interceptors with example
- File upload in struts 2
- Struts 2 ajax example
- Struts 2 spring 3 integration example
First you need to download struts 2 framework from apache website .Click on “Download now” and Struts 2 will be downloaded on your machine.
Now Open your eclipse environment.
Click on Files->New->Other
Click on web->Dynamic web project
Now go to location where you have download strut2 package and open lib
folder.you can have all jars but for now you can copy following jars
- struts2-core-2.3.1.2
- xwork-core-2.3.1.2
- ognl-3.4
- commons-io-2.0.1
- commons-fileupload-1.2.2
- javassist-3.11.0.GA
- freemarker-2.3.18
- commons-lang-2.5
- commons-logging-1.1.1
- commons-logging-api-1.1
- struts2-dojo-plugin-2.3.1.2.jar
Paste all above copied jars to WebContent->WEB-INF->lib
Click on Java Build Path and then Add jars as shown in above diagram.
go to project->WebContent->WEB-INF->lib and select all jars then click on ok.
Click on ok.
Now you are done with configuring strut2 in eclipse.You can create your struts 2 project.
In next post we will write Hello world example in struts 2 .
Thanks a lot its a great help for new bud like me … 🙂
Gud.. Really helpful for beginner lk me.. thanks a ton…..:)
Thanks a ton. It was really useful
Really helpful for begineers…thanks alot….
good
For simple application it helped me a lot. But I am having a problem now that is I am getting an error as “HTTP Status 500 – An exception occurred processing JSP page /signin.jsp at line 26” , Can you please help me?
most helpfull these steps….
thank, it's really easy to do