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

Speciality

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.

Other Examples

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!

Next: Guides

13 Comments

  1. 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.

    1. Unknown User (phil)

      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.

  2. Ramses Ladlani

    Hello,

    As of May 29 2008, the MailReader link is broken (404 error).

    Thank you for this documentation.

  3. onepd

    Hi,

    I started new Struts 2 tutorial on www.onepd.com or https://sourceforge.net/project/platformdownload.php?group_id=247291

    Thanks.

  4. Jim Garrison

    All the planetstruts.org example links go to a domain squatter site. Have these examples been moved somewhere else?

    1. Unknown User (phil)

      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.

      1. 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

  5. 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

  6. 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

    1. Unknown User (phil)

      Added - thanks Chris. Looks very good.

      1. Anonymous

        Cheers, you're welcome. Thanks for the kind words. I only hope someone learns something from it.

  7. 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.

    1. Unknown User (phil)

      Struts user mailing list.