views:

169

answers:

2

Hi all,

I just started to get into the door of the Java world. I have been programming in C# for the last 3 years, and been doing about 3 months of ASP.Net MVC. I absolutely love it, but the fact that I need Windows for it to run the latest and greatest libraries is a bit of a turn down... Plus I think learning another language helps with understanding concepts, since you get a comparison.

I want to learn JSP/MVC. I was wondering if it's similar to ASP.Net MVC, and if I can write JSP/MVC web apps without using another framework (like Spring) to get started.

Also, which is the better way to learn JSP/MVC from my C# background?

Any suggestions are welcome. Thanks in advance!

+3  A: 

JSP is a view technology, which is best to be compared with "classic ASP". The Sun Java counterpart of Microsoft ASP.NET MVC is actually JavaServer Faces (JSF).

For a short and quick introduction of JSP/Servlet/JSF, read this answer. To learn more about JSF, go through Sun Java EE 6 tutorial part II chapters 4-9.

For JSF there's by the way another view technology available: Facelets. This is way much better than JSP. If you can, I recommend to forget about JSP for this bit and go ahead with Facelets.

BalusC
Thanks, I will look into Facelets first.
kesun421
+1  A: 

To supplement the answer above, I have dug up this fantastic article on getting started in JSP:

http://articles.sitepoint.com/article/java-6-steps-mvc-web-apps

It goes right into the basics of servlets, jsp and then mvc techniques, none of the mumbo jumbo in other MVC tutorials out there for JSP. Very down to earth. Wish the guy who wrote it would write a book on this topic...

kesun421