views:

442

answers:

5

I have pretty big background of .net, and I've decided that i want to port one of my websites to Java. (now with the asp.net MVC craze, I've figured I'd better learn a more mature approach to MVC).

i've downloaded eclipse (easyeclipse distro to be exact, and am ready and willing to develop my first website in java).

i've programmed j2me application before, so i know the language and some of the framework.

can someone guide me? any advice?

+1  A: 

Although I'm not very aware of "asp.net mvc" is all about, I would suggest you to take a look at Spring it may be interesting.

Probably is too complicated at the beginning but when you get the concept it turns out very easy to follow.

Spring has 5 core modules ( which I don't remember exactly ) but they were like:

  • AOP
  • ORM
  • MVC
  • Core
  • ( some other I'm missing here )

The MVC part uses a lot of annotations to make life easier. There's a very big community around Spring.

Here's an introductory article about spring.

OscarRyz
A: 

If you interested in web applications specifically, I would recommend using MyEclipse http://www.myeclipseide.com. Basically, this is a version of eclipse with all the web server integration and functionality built in. I've been using it for a few years and it's much easier to develop with than with plain vanilla eclipse. Depending on how much your going to use it, you have to decide whether the $55 annual subscription is worth it for you.

A: 

I'm a little confused. does spring framework actually a full blown framework? doesn't Java already have a framework? (by framework i mean all those misc libraries).

Orentet
Spring is not merely a collection of classes. It's a lightweight framework that let's you create well-organised applications by taking advantage of a concept known as dependency injection.
Sandman
I think you're referring to JSP/Servlets. Spring as many others like Struts are based on that APIs, but they create a complete framework around it to make it work better/easier etc. So, the "official" way of for java webapps is jsp/servlets, but I think Spring is a lot better.
OscarRyz
That's the main difference in the .net land. It doesn't have to be build by the owner company ( Sun ) to be really good. Hibernate is another example, it was not created by Sun, but is kind of standard in java ORM. Apache ant is another good example of this.
OscarRyz
+1  A: 

Java has a ton of frameworks you can choose from. The technology stack that I use for my Java development is either:

Spring for IoC. Hibernate for the data layer. Struts2 for the MVC framework. I have also swapped out spring and used Guice for the IoC.

Spring also has MVC, but I tend to like Struts2 better.

Ruggs
+1  A: 

I'd recommend looking at Grails, it lets you become comfortable with all the java libraries and frameworks like Spring, SpringMVC, Hibernate, SiteMesh, and so on but gives you a much better DSL for web applications and much more concise code with the Groovy language (think of it as Java with dynamic typing, blocks, closures, and so on).

If you'd rather stick to pure Java I'd recommend looking at the Stripes framework and the following book:

http://pragprog.com/titles/fdstr/stripes

Abdullah Jibaly