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.
Stripes and ZTemplates are supposed to be pretty light.
Take a look on Apache Wicket.
grails requires a minimal amount of config since most of it has sane defaults.
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.
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.
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:
- servlet container;
- JSPs (optional);
- Java runtime;
- web server to serve HTMLs.
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
check out (µ)Micro and see if it is light enough :)
HTH - florin
© 2022 - 2024 — McMap. All rights reserved.