Best Technologies for a Simple Java CRUD Website

I want to create a CRUD site (create, receive, update, delete) using the simplest Java tools. This site will allow users to manage four tables, two of which are lookup tables used to create menus, and two of which will run CRUD activity.

I tend to Stripes, but I would like to hear the opinions of the developers of the experience. Three key requirements are simple, simple, simple! I think Struts and Spring MVC are harder than I need.

- = beeky

+6
java web-applications crud
source share
11 answers

grails , because your workflow will become:

  • Define classes for domain objects
  • run grails generate-all

And you will have a very simple CRUD application, which can also be expanded to the "real application status" without throwing everything away and not starting again. CRUD in a rake takes no more than 5 minutes. For serious ones. Check out the introduction to the Scott Davis tutorial .

+16
source share

The simplest application is a simple servlet that processes a java-based SQL engine (e.g. Derby (jabaDB) or HSQLDB)

You might even think of CGI written in Java.

+4
source share

I would use Grails as it perfectly suits your requirements. I have never created simple CRUD sites faster. The Stripes programming model is more like a customized Struts - somewhat awkward.

+2
source share

The simplest solution is to use an administration interface that provides CRUD capabilities, validation, data filtering, security and that have a simple and clean user interface (for example, the admin panel in Django or ActiveAdmin / Ruby).

The only Java solution I know is LightAdmin . This is an open source Java plug-in library for JPA-enabled applications that provides an administration interface for your JPA data model. It has a built-in DSL for customizing the user interface and is based on the Spring tech stack.

The good thing about LightAdmin is that you do not need to support all the supporting code in your codebase. Everything is included in the library, including the user interface.

+2
source share

rails on jruby or grails. Yes, this is a different language, but they are easy to recognize and worth it.

+1
source share

I offer GWT (google web toolkit), although I have never played with Grails.

With GWT, your client gui is written in java. There is a compiler that is used to create a javascript version of the application. Therefore, it is very simple to create a simple graphical interface that reflects your object. When the user clicks "Save", the object is accepted on the server side, ready to be saved. Then just use hibernate / JPA to save the object to the database.

We use a simple internal tool for managing user rights. The administrator just needed to check / uncheck the box. The AJAX call sent an updated object to the server, which simply calls save () on a sleeping level.

+1
source share

I will not recommend using the framework in your case. A simple jsp / servlet with jdbc should work.

But, if you decide to use the framework, from my experience using Stripes, Struts1 and JSF (MyFaces), recommend Stripes without hesitation.

+1
source share

Tapestry-based Pure Java solution will choose Tynamo . Suitable for the account, it is simple, but expandable, without unnecessary fluff. Agree with the previous comment, H2 is an amazing little database, and what Tynamo uses by default as well

+1
source share

Try tox with Oracle XE , both are free. Tox - GPLv2. Its MVC architecture uses XSLT, JavaScript, and PL / SQL.

0
source share

Here is a very simple Java Web stack that I used recently:

Restarts can run in any servlet container. Although they didn’t work very well in Simple or Winstone, they worked great for me in Jetty.

Optionally, H2 can be combined with active objects to provide very easy persistence, but I have not tried it myself.

If your data volume is small and you really want to simply, why not completely remove rdbms and use Prevayler , giving a complete stack consisting only of Restlet and Prevayler?

0
source share

You can also consider Spring Roo, which is basically the pure Java equivalent of Grails.

0
source share

All Articles