开发者

Wanting to write web applications in Java, I'm in total bewilderment concerning which platform/framework/language to use? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

I'm currently confused about the many options concerning developing Web Applications with Java. I've worked on some Java programming using Servlet/JSPs only, in the past most of my work was on PHP.

I'm trying to select a good base for me to start. The options I've considered are the following:

Option 1. Pure JSP/Servlet programming with Hibernate for the Back-end.

Problems: Maintaing a web.xml for every servlet, strict types, needing to recompile and restart tomcat everytime a change is made, lots of code.

Option 2. Groovy on Grails

Problems: Still not a mature technology, might be difficult to debug, might turn out to be slow.

Option 3. Web Application developme开发者_JS百科nt using the Spring Framework Problems: Seems like a chubby framework. Skeptic about it, I dont want to be limited by a framework that covers everything, I prefer using small vertical libraries like Guice, Hibernate, JSP/Servlet.

Out of my scope: JSF, Struts, Tapestry. Those three I didn't feel comfortable reading about or using.

I need help, can anyone please provide me a relieving answer to the above? Thanks.


If you can not decide on what to use, there are only 3 ways to do it, and the choice is yours:

  1. Open your local job-search web page and find which technologies are currently popular in your region. If you choose it this way - you will have most money (statistically you should).
  2. Input various technologies in the search box on stackoverflow and see the amount of results. Pick up the one with most results. This will mean the biggest community resulting in getting the help easier if something goes wrong.
  3. Trying them all out yourself. Every human is different, there are ones prefering assembler, and other trying to code everything in Javascript. You can't just ask which of the platforms is generally better - you have to try them out yourself.


I suggest to add the play framework to your list.

Just another links for my commentators ;) : How to demo the play framework

BTW - my recommendation is mainly based on their tutorial. After studying these pages, I thought for the first time, next time I do a web application. Those guys seem to know what web developers really need. (again - my personal impression)


I recomend to use GWT, you can keep programming in pure java

http://code.google.com/intl/es-ES/webtoolkit/

Then all pure java experience, books, libraries and hours of work will be useful without needing another language, that was the google idea behind that.

There is also a Java Web Toolkit (and one for C++), but I haven't tried them yet

http://www.webtoolkit.eu/jwt


Option 1: It's a good option if you add some libraries to it to avoid re-programming what it has been programmed already (see out of scope paragraph) You don't need to maintain a web.xml for every Servlet. You must maintain one web.xml per application running in Tomcat. Strict types = less bugs. What's the problem with restarting tomcat? You develop with Eclipse for example, who has a server integrated so you don't need to deploy to see your changes and when you reach certain milestone or release, you deploy to production server.

Option 2: I have no experience whatsoever with it. But slow? Don't think so. Difficult to debug? You come from PHP...I'm sure you find it easier :).

Option 3: Spring is a huge factory with tons of various tools and items. Then you take that items and construct a bike or a tank out of them. (Thanks to Max comments)

Out of your scope: JSF is on top of JSP so does a lot of stuff for you, and helps you develop a MVC pattern. It provides you with a nice framework, which is easy to understand if you already know JSP. I'd give it a second try. Also consider using GWT, maybe is what you are looking for.

My two cents: I'd go with Hibernate and JSF (and Richfaces) or GWT. You'll learn, you'll have fun, you'll get what you want. Grails and Groovy has become really popular lately. I'm sure if you choose them you'll learn and have fun too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜