DEPRECATED: moved to http://struts.apache.org/getting-started/
Several tutorials are available to help you get started with the framework, from all-purpose "soup to nuts" tutorials to specialty tutorials on portlets and database access.
Primers
- Bootstrap - few simple steps how to start with Struts 2
- Struts 2 + Spring 2 + JPA + AJAX
- Struts 2 / Hibernate Tutorial
- Struts 2, Spring 3, JPA 2, Maven Example
Speciality
- Extending an Application with Custom Plugins
- CRUD Made Easy
- Creating java web applications with AngularJS and Struts2
- 4 Easy Steps to create a Java based Web Application with Struts2 and jQuery
- JasperReports Tutorial
- Portlet Tutorial
- Developing a Portlet using Eclipse
- Struts 2 JUnit Plugin Tutorial
Examples
Several example applications are bundled with the framework, as ready-to-deploy WARs.
Blank | An "empty" application that you can use as the starting point for your own projects. |
MailReader | A simple application that demonstrates best practices. |
Portlet | An application demonstrating portlet support |
Showcase | A sampling of common (and not so common) use cases. |
Simple examples and links to "powered by" sites |
For the complete source code to the applications, see the source code distribution.
Errata?
To suggest a change or a correction to any part of the documentation, log in and leave a comment on the appropriate page. We are always looking for help with the documentation!
13 Comments
Vishnu Deevi
Hi
In examples section Portlet example which is pointing to
http://www.twdata.org/backups/WW/how-to-build-the-portlet-war-for-a-specific-portal-server.html
is throwing a blank page. It would be great if someone could post a struts 2 sample portal app it would be of great use to learners.
Thanks for all your support.
Philip Luppens
Fixed url - thanks for letting us know.
As for a struts portal app: I believe there's one in the showcase, and if not, a search should help you out.
Ramses Ladlani
Hello,
As of May 29 2008, the MailReader link is broken (404 error).
Thank you for this documentation.
onepd
Hi,
I started new Struts 2 tutorial on www.onepd.com or https://sourceforge.net/project/platformdownload.php?group_id=247291
Thanks.
Jim Garrison
All the planetstruts.org example links go to a domain squatter site. Have these examples been moved somewhere else?
Philip Luppens
Removed the old links, thanks. I've posted a question on the dev mailing list to see if they are available somewhere. I'll update the page as soon as I know more.
Craig Ricciuto
The links to planetstruts.org are still active on the http://struts.apache.org/2.1.6/docs/home.html wiki site (the main wiki?).
And after searching for a few hours for examples (like blank, mailreader. showcase, etc) can be downloaded in the "Example Applications" zip file located at http://struts.apache.org/download.cgi#struts216
Arvind Ray
Hi..
Please provide the documentation link for "Showcase A sampling of common (and not so common) use cases." It will be great help if we get any documnetation on that war.
Thanks & Regards
chris hulbert
I've created a primer tutorial that we've been using at work and a few people have found it worthwhile, would you consider adding it to the links in the 'primers' section?
It's here: http://www.scribd.com/doc/25244173/Java-Struts-Hibernate-Tutorial
Cheers
Philip Luppens
Added - thanks Chris. Looks very good.
Anonymous
Cheers, you're welcome. Thanks for the kind words. I only hope someone learns something from it.
Anonymous
struts+spring+hibernate+ajax tutorial doesn't work properly.It gives error while using "theme="ajax" and debug="true". And other <s:a> and <s:div> tags are also not working.
Philip Luppens
Struts user mailing list.