Java Web Framework similar with Ruby on Rails paradigm - java

in your opinion, what is java web framework that most close to or similar to the paradigm of the Ruby on Rails (like convention over configuration, DRY, noXML, etc), but without the need to learn scripting languages ​​like Groovy. And of course have a great documentation and community.

Take a look at Grails which follows the paradigms of Ruby on Rails.

You can take a look to Play Framework it follow MVC and RESTful architectures.

Maybe too late, but have looked at Spring Roo?

This question is a bit old, but this information may still be useful for people looking for a good java framework:
Try ninja framework (http://www.ninjaframework.org). I have tried various java web frameworks and this one was by far the easiest to setup and use. Just follow the tutorial on their page.
Developing with it is very easy, ninja web projects are standard Maven projects so you can open them with any ide that supports Maven. For example, you can open the project with Netbeans, and have the development server running in a commandprompt/terminal window. Any time you save your changes the development server will pickup your changes and restart very quickly.
Or you can use a standard text editor if you want.
Very comfortable to develop with. You can also debug very easily from Netbeans (http://www.ninjaframework.org/documentation/debugging.html)
Note: if you use an ide like netbeans, you dont actually run the project from netbeans, you just edit your changes on the ide and save. The development server picks up the changes automatically.

I think Stripes is what you are after.
http://www.stripesframework.org/display/stripes/Home

You can also take a look at Java on Rails
http://www.javaonrails.net/

Related

Eclipse/Java equivalent to Microsoft ASP.NET Model View Control Framework

Does anyone know if there is any equivalent to Microsoft's ASP.NET Model View Control Framework with Visual Studio/C# but for Eclipse with Java?
Or put it another way one could build a website in C# using MS Visual Studio with ASP.NET MVC, is there anything similar for Java using the Eclipse IDE?
I've built up good knowledge with Java and the Eclipse IDE creating some Android Apps that I'd like to leverage, now I need to turn my attention to web apps and I'd like to stick with Java and the Eclipse IDE. Cheers!
There are a bunch. I'd check out Play!
but there are also: Apache Wicket, Spring MVC and some others.
There is also a version of Play! for Scala which is a bonus if you intend on moving up from Java to Scala one day.
There is also a similar question with a more detailed answer here:
Choosing a Java Web Framework now?
Spring MVC is worth a look. Spring goes way beyond "just" MVC, with APIS for DB, JMS, and loads more, which may be a little offputting if you're just keen to get to grips with an MVC platform, but it's arguably worth it.
http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html
http://static.springsource.org/docs/Spring-MVC-step-by-step/
Tapestry or Wicket is worth trying.
Yes, there are a lot of them. Your problem is that there are too many, actually. Narrowing down the list can be a challenge. Everybody has their favorites (mine is Apache Tapestry, because it's actually fun to use, and very powerful).
My recommendation is to pick 3 or 4 (I'd go with Tapestry, GWT, Spring MVC and Wicket), and then spend a couple days working through the introductory tutorial that each of them offers. You'll soon know which one feels right to you, and you'll be basing your decision on your own experience rather than the strongly-worded opinions of strangers.

From .Net Webdevelopment to Java Web Development

At my work I'm using C#, Microsoft SQL Server, Windows Server and Microsoft Visual Studio. As you can see I'm totally in the Microsoft world.
But i want to broaden my development knowledge and start with java again. I had java classes at school, but my first development job was in .Net VB and till then I'm stuck in the .Net world. It's not that I don't like .Net. I love Visual Studio in combination with R#, and the SQL Management Studio is also very easy to use and very comfortable.
I have good knowledge of ASP.Net Webforms and started with the release of ASP.NET MVC 2 creating intranet applications using this platform.
I want to create small web applications at home with java and want to know, what tools you, as an experienced java developer, can recommend me.
For the IDE: I've used eclipse in version 3 i think and it was around 2004. Is it still a good free IDE or are there now some better ones? Or would you recommend NetBeans or the community edition of IntelliJ for web development?
Is the equivalent of Asp.Net MVC the Spring Framework in Java?
What else do I have to look for, for a smooth switch from java to .net?
Thanks in advance to everybody...
I would go with Intellij, but that is a personal preference.
As for Spring, it definitely is a useful tool to have in your back pocket or on your resume. It provides most of the stack you'll need to develop an application. The biggest missing part is persistence. It interacts with all the popular persistence frameworks out there, Hibernate being the one I would use, so that isn't really an issue.
If you don't like the Spring web framework, you can with others like Struts2. You can use Struts2 with Spring instead of their own MVC framework. Also, there's Guice, which is a dependency injection framework like Spring, which I like better than Spring.
There's also the Play! framework, which attempts to be a full stack like Rails. I've only looked at it briefly so I don't know too much about it. It looks good, though.
Just my 2 cents.

Rails for Java Desktop MVC

I'm looking for a desktop application framework similar to Rails/Django but for Java desktop GUI's:
Good ORM (xml, db, whatever)
MVC
Default directory structure
View Helpers / CRUD support
Open Source & Mature
Basically, I want to define a large number of models for a desktop application either in Java or schemas and have a simplistic GUI framework generated to begin extending.
Does anything out there do this or come close?
Thanks.
You might try looking at Griffon: http://griffon.codehaus.org/. It's an MVC framework using the Groovy scripting language.
How about Monkeybars? It's a nice JRuby MVC framework (somewhat inspired by Rails, I think) that runs on top of Swing; you can use any ORM you like with it. I've had a lot of luck with it.
I was using Swinger for testing, but according to http://jeffkreeftmeijer.com/2011/capybara-ate-swinger/ , I think Capybara will now drive Swing apps.
While it isn't quite spot on, have you looked at grails (http://grails.org)?
You can take a look at scala. If you prefer Ruby, then you might try JRuby.
Today, Web applications run smoothly just like desktop apps using ajax. Ext js is a good example.

Java for intermediate .NET Developer

I am a .NET Developer with about 5 years of web development experience using Microsoft technologies starting with classic ASP to ASP .NET 3.5.
I do have a little background in Java as well and can write/understand Java code very easily. I am looking for resources (online, books) that are compatible with my .NET experience. I am only interested in web development in Java and want to start at intermediate level even if it may require me to look up some details.
What path or resources would you recommend for intermediate .NET web developers to gain equivalent proficiency in Java web development tools?
Get an IDE: IntelliJ (my preference), Eclipse, Netbeans;
Get an application server: Glassfish (my preference; either v2 or v3 Prelude), JBoss or, if you're feeling adventurous, SpringSource dm server;
Get a JDK eg 6u11;
Get a copy of Spring 2.5.6 (or 3.0M2 if you're feeling adventurous);
Get a copy of the Spring reference documentation;
Put the pieces together.
Get yourself a copy of eclipse, and just start reading other people's code, and reading some java docs. The Java website has all the docs online, and they're one of the best language specs I've seen.
Really, if you know C# pretty well, Java should be a cake walk. The languages are pretty similar, so you just need to get to know the different frameworks.
Probably the most helpful book in regards to learning Java's web development framework, Java Server Faces:
Core JSF
- Great examples and explainations throughout on the whole process of using the JSF Framework.
And of course for anyone new to Java I would recommend:
Effective Java
- Covers various design patterns and practices.
In my experience that official Java exams are better than the .Net equivalents, so it may be worth starting there?
Search for a servlet/JSP tutorial (Good, albeit a little old, example here).
You'll get basic knowledge of Java web application development.
Whatever your level is, JSF for Nonbelievers is the best introduction to JSP/JSF.
I'd check out Bitter Java.
It's a book that shows you the wrong way to do things, why it's wrong, and then it shows you the right way.
It pretty much falls in line with the evolution of the j2ee framework. Started with servlets, then moved into jsps, then command pattern, etc.

Porting from PHP to Java - framework recommendations?

Im porting a project from php to java. The project is a web-app based on php and ajax techniques with a javascript front-end. What java-frameworks would you use for something like this?
Does the result have to be written in Java, or does it just have to run on the JVM? In the latter case, you might want to consider Grails, which uses Groovy, a Java-based dynamic language that compiles to Java byte code and has full access to the Java standard API.
How well do you know Java?
Why are you porting it?
I can't really tell based on your description, but there are lots of Java web frameworks out there. Pick one. I prefer Spring.
I fear that you're about to be very disappointed. I anticipate a lot of questions like "Why can't I do X in Java? It's easy in PHP!"
Apache Wicket is a possible java based web framework you might consider. The default would be the java servlet and jsp frameworks.
without seeing the source code - you will need a complete rewrite. just "porting" will probably not work.
out of all available frameworks i'd recommend two: wicket if you want clean lightweight technology. with ajax. jsf/seam if you are in a corporate environment where it it easy to get tons of experienced developers.
I really like Stripes.
There's a really good book out on it too. Stripes ... and Java Web Development is Fun Again.
This question seems to come up alot. Related:
What Web Application Framework for Java is Recommended?
Best java mvc framework implementation for web apps
Does it make sense to use a framework for a simple java web app?
What language/platform to choose for a new web application?
In my opinion you would still do the same but generate the html with JSP and javabeans instead of php. javascripts and ajax will still work without a problem if the outputed html is the same.
It depends by the size of your project, the features and your resources.
If the project have'nt a lot of particular needs you can use Struts. Thsi is a stable framework, not really advanced but simple and powerfull for the development.
Another frameworks more recent and advanced are Spring and Wicket.
Before you start, I recommend you to do a check-list of your need:
Do you must porting a O/R mapping too?
Have you a stable developer knowing Java/J2EE?
Do you think to add some feature during the porting or in short-run?
etc etc
good luck! :)
I would port it to GWT
Google Web Toolkit (GWT) is a development toolkit for building and optimizing complex browser-based applications. Its goal is to enable productive development of high-performance web applications without the developer having to be an expert in browser quirks, XMLHttpRequest, and JavaScript. GWT is used by many products at Google, including Google Wave and the new version of AdWords. It's open source, completely free, and used by thousands of developers around the world.

Categories