Stripes (framework) explained
Stripes is an open source web application framework based on the model–view–controller (MVC) pattern. It aims to be a lighter weight framework than Struts by using Java technologies such as annotations and generics that were introduced in Java 1.5, to achieve "convention over configuration". This emphasizes the idea that a set of simple conventions used throughout the framework reduce configuration overhead. In practice, this means that Stripe applications barely need any configuration files, thus reducing development and maintenance work. It has been dormant since 2016.
Features
- Action based MVC framework
- No configuration files
- POJOs
- Annotations replace XML configuration files
- Flexible and simple parameter binding
- Search engine friendly URLs
- Runs in J2EE web container
- JUnit integration
- Easy internationalization
- Wizard support
- JSP layouts
- JSP or freemarker templates as View
- Spring integration
- JPA support
- AJAX support
- Fileupload support
- Compatible with Google App Engine
- Open-source
- Lightweight
Example
A Hello World Stripes application, with just two files:
- HelloAction.javaimport net.sourceforge.stripes.action.ActionBean;import net.sourceforge.stripes.action.ActionBeanContext;import net.sourceforge.stripes.action.DefaultHandler;import net.sourceforge.stripes.action.ForwardResolution;import net.sourceforge.stripes.action.Resolution;import net.sourceforge.stripes.action.UrlBinding;
@UrlBinding("/hello-.html")public class HelloAction implements ActionBean
- HelloWorld.jsp Hello $
Try again
No additional configuration files needed.
Bibliography
- Book: Frederic. Daoud. October 27, 2008. Stripes: ...and Java Web Development Is Fun Again. Pragmatic Bookshelf. Pragmatic Programmers. 1st. 396. 978-1-934356-21-0. 2010537102. https://web.archive.org/web/20160629091133/https://pragprog.com/titles/fdstr/stripes. 2016-06-29.
- Web site: Glover . Andrew . 2009-01-20 . mdy . Shed the weight with Groovlets . The Disco Blog . . 2020-08-06.
- Web site: Hoang Le . Kevin . 2006-10-06. mdy . Revisiting the logout problem . . 2020-08-06.
- Web site: Jose . Benoy . 2006-09-29 . mdy . Stripes Takes Struts to the Next Level . Java Boutique . DevX . https://web.archive.org/web/20120505075204/http://javaboutique.internet.com/reviews/stripes/ . 2012-05-05.
- Web site: Allmon . B.J. . 2006-08-22 . mdy . Configureless J2EE development with Stripes, Apache Derby, and Eclipse . . . https://web.archive.org/web/20100204205729/http://www.ibm.com/developerworks/opensource/edu/os-dw-os-ad-configureless.html . 2010-02-04.
- Web site: Smith . Rick . 2006-07-17 . mdy . Struts to Stripes—A Road Worth Traveling . DevX . https://web.archive.org/web/20170923032951/http://www.devx.com/Java/Article/31921 . 2017-09-23.
- Web site: Eagle . Mark . 2007-01-24 . mdy . Java Web Development with Stripes . ONJava . . https://web.archive.org/web/20180506213519/http://www.onjava.com/pub/a/onjava/2007/01/24/java-web-development-with-stripes.html . 2018-05-06.
- Santos . Samuel . 2009-09-17 . mdy . Java Web Development with Stripes . JavaPT09 . Portugal Java User Group . 2020-08-06.
- Shan . Tony . Hua . Winnie . 2006 . Taxonomy of Java Web Application Frameworks . ICEBE'06 . 2006 IEEE International Conference on e-Business Engineering . 378–385 . 0-7695-2645-4 . 10.1109/ICEBE.2006.98.
- Book: Watson . Brent . 2015 . Stripes by Example . . 978-1-4842-0981-3 . 10.1007/978-1-4842-0980-6. 40235866 .