views:

431

answers:

5

Can anyone suggest a Java Web Application framework something like ASP.Net?

Thanks.

A: 

Here's a comparison of web application frameworks. Several are written in Java. Struts is probably one of your better choices.

Randolpho
Is it? Perhaps Wicket is a better choice.
Ravi Wallau
er... perhaps it is? I don't judge.
Randolpho
Struts is one of those frameworks where you need to configure the configuration file with another configuration file to get to the actual template file which is then filled by executed code while Wicket only cares about the actual code. This would make me quite judgemental.
Esko
@Esko: Still one of the better choices out there. Go ahead and downvote another of my posts if you disagree.
Randolpho
Struts is one of your better choices? Maybe 6 years ago.
Adam Gent
A: 

There are lots http://java-source.net/open-source/web-frameworks

Justin Hamade
which one is the most popular one? In particular in the hosting business?
awatto
Hosts usually provide a web container like Tomcat etc, which allow you to deploy WAR files. You usually enclose the framework in the WAR.
Thorbjørn Ravn Andersen
+1  A: 

The closest are component based frameworks like JSF, Wicket, Tapestry, etc.

A: 

There are many, many, frameworks.

My favorite Java web framework is the Stripes Framework, it's an actionbased MVC framework that does not need XML configuration files like those other popular frameworks like Spring MVC, Struts.

If you need statefull server objects, you could go for one of the component based frameworks. JSF is the defactor standard as it ships with Java EE. But it's regarded as complex and not to elegant. Wicket is considered more elegant and simpler. Tapestry offers lot's of stadard components (see also: Why did you stop using Tapestry?).

Kdeveloper
A: 

The Play! framework is excellent. Here are features (off the top of my head):

  • Stateless / REST-oriented
  • Rapid development with source code compiling automatically (just refresh the browser after a change, don't wait for recompile)
  • No web container required
  • Does not require XML configuration
  • Uses Groovy for templates (which I think is nice, but maybe you want only Java)
  • Very active community and rapid developer feedback
  • Currently at version 1.01, version 1.1 will have full Scala support (which will be great, I think, but maybe not for you)
Mark S