What's the most minimal Java web MVC framework? [closed]
Asked Answered
E

9

9

I'm looking for a Java web framework that requires the most minimal amount of configuration for a very small app. Spring & Struts are definitely overkill here. This is an app that could be written without any framework at all but I would prefer to use a minimal MVC framework if I can find one.

Eclipse answered 28/4, 2009 at 4:28 Comment(0)
R
11

Stripes and ZTemplates are supposed to be pretty light.

Resonance answered 28/4, 2009 at 4:35 Comment(2)
+1. Stripes has the added benefit of being one of the easiest web frameworks to get up and productive quickly.Taveda
Stripes provides essentially the same functionality as Struts2 + conventions plug in. So I'll agree that it should be easier to get up and running but it is a pretty trivial lead.Bumbling
M
7

Checkout spark. Its as mimimalistic as it can get.

Mossy answered 24/7, 2013 at 10:4 Comment(0)
G
6

Take a look on Apache Wicket.

Greataunt answered 28/4, 2009 at 4:43 Comment(2)
Because it's minimal or because you just like it?Eclipse
Because it is pretty simple to start developing web applications with Wicket and it requires a small amount of configuration to get it working. That's why I like it.Greataunt
B
3

grails requires a minimal amount of config since most of it has sane defaults.

Breskin answered 28/4, 2009 at 4:33 Comment(5)
"sane defaults"? What does that mean?Eclipse
I personally prefer the frameworks with insane defaults. ;) More seriously, I think he just meant that it doesn't require a lot of configuration (as the default configuration will work ok for most cases).Resonance
More than that - it uses the "convention over configuration" approach of Rails, which means that e.g. taglibs are incredibly easy to use - just have a class whose name ends with -Taglib in a specific folder, define a closure field in it, and that field's name can now, without any configuration, be used as a tag in your JSP equivalent.Youngster
Of course, grails is not lightweight by any stretch of imagination - it uses Spring and a number of other frameworks in the background, but it (quite successfully) tries to take away the pain and the overhead of using them in the way described above.Youngster
i should have said "convention over configuration" instead of "sane defaults" :(Breskin
S
3

I'd say that spring webmvc is pretty minimalistic and IMHO it's far from overkill. You don't have to include the whole spring Framework to do your things. To start a webmvc webapp you need ~3-4 jars IIRC. Don't underestimate the advantages of DI in regard of internal structure and testability.

I'd go for Spring WebMVC + JSP maybe combined with sitemesh. Later when you realize that you have more complicated stuff to do you could add Spring-Webflow and so on.

Selfassertion answered 28/4, 2009 at 6:42 Comment(0)
T
1

The most minimal way to do a Java web app would be to use JSPs to display your content and Just plain Java in the back end.

This would require almost no configuration.

The only requirements for that is the J2SE and Tomcat for hosting.

Thiouracil answered 28/4, 2009 at 4:29 Comment(2)
That's not a framework. As I said, I specifically want to use an MVC framework.Eclipse
Well, sorry. You also asked for minimal. All MVC frameworks come with a little bit of baggage.Thiouracil
A
0

The lightest Java framework would be servlet + JSP. Try to use the latest released standards - Servlet 2.5 and JSP 2.1. Tomcat provides all you need:

  1. servlet container;
  2. JSPs (optional);
  3. Java runtime;
  4. web server to serve HTMLs.
Arte answered 28/4, 2009 at 4:42 Comment(3)
That's not a framework. I specifically want to use an MVC framework.Eclipse
Combining several technologies together by following common practices constitutes a framework, and as such it may attain minimal value...Arte
This one's still going :) web4j.comPercolation
A
0

try appfuce.com. this gives you full functional mvc webapplication based on your preference(struts2, spring or JSF). and it has sample login system implemented so that you will learn the core features of technologies involved

Attack answered 6/8, 2012 at 8:28 Comment(0)
K
0

check out (µ)Micro and see if it is light enough :)

HTH - florin

Knudsen answered 20/3, 2013 at 12:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.