Clone wiki

affable-bean / Home

The Affable Bean application with HTML5 front-end

This project shows how traditional server side application written using Java EE can be split into server side and client side part where client side part is written purely using HTML5/CSS3/JavaScript.

The original tutorial can be found at If you want to run this project you should follow the tutorial parts which setup MySQL database and populate it. Once the database is up and running and registered in the IDE you should have no problems running this project. NetBeans IDE 7.3 and GlassFish are the recommended tools to use.

Project has two top level directories: server and client.

Server part

The server folder contains slightly modified version of the original Affable Bean app. The changes are:

  • rest package added with two rest services
  • rest/filter package added with CORS filter
  • web.xml uses Jersey REST servlet

Client part

The client folder demonstrates how client can be written using AngularJS framework. Check app/js/services.js if you need to adjust URL to your REST service. There is also an option to use offline static files instead of connecting to remote REST service. Similarly you may need to update test/unit/controllersSpec.js.


If you prefer you can download a snaphost of the sources:

Questions or problems?

Do not hesitate to contact me at