• 1.6

The development of this framework was suspended on 10 Mar 2015. Its successor is takes.org.

RESTful Java Web Framework

The idea is simple — to make a RESTful XML API available in a browser-friendly format renderable with XSL stylesheets. With ReXSL you develop your web application as a RESTful "web service" while XSL stylesheets transform it to an HTML web site. These blog posts explain it in more details: XML+XSLT in a Browser, RESTful API and a Web Site in the Same URL.

The diagram explains how components are connected to each other. It is a classic Model-view-controller (MVC) pattern, where JAXB POJOs play a role of a Model. JAX-RS resources are Controllers. Stylesheets with a powerful XSL 2.0 language are Views.

UML diagram with layers

We assume that you are familiar with Java 6, Apache Maven, XML, XSL 2.0, XPath 2.0, JAX-RS 2.0, JAXB 2, Java Servlet API, REST, HATEOAS, HTTP 1.1, TDD. If any of these technologies are new for you — we strongly recommend to learn them.

These are the reasons why you should consider ReXSL over other Java web front frameworks like JSF, JSP, Servlets, Wicket, Spring MVC, Struts, Tapestry, Cocoon, Context Framework, and others:

  • Graphic design evolves in parallel with Java classes
  • Web front-end is an API at the same time
  • Layout is decoupled from data

This article explains how to create a working web application using ReXSL in five minutes: Quick Start Guide. For example, s3auth.com is an open source web application that is build using ReXSL framework: see its code in github.

Post us a message in our Google Newsgroup if you're interested or just curious what is it all about. Besides that, don't hesitate to submit a ticket to Github when something doesn't work or you need more features.