Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the ideal Java Web development framework?

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Today, I would like to talk to you about the ideal Java Web development framework, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

An ideal Java Web development framework should have a good IDE development tool with a clear and simple architecture design, easy to expand, easy to use, and so on. Now that there are a lot of Java Web development frameworks, let's roughly analyze which one is good:

I have used JSP, JSF, Struts, Spring MVC, GWT, Scala Lift, Eclipse RAP, Wicket. I don't have a deep understanding of anything other than Eclipse RAP. I just use these different frameworks to do the same thing and compare them to draw the following conclusions (personal point of view, for reference only):

List of Java Web development frameworks

First of all, there are too many things to consider when simply using JSP to develop a project, and the development efficiency is not high. Since there are more round free wheels, why not use them?

The development idea of JSF is component development, but how can component development work without a good IDE development tool? at present, OperaMasks Studio does not think it is very easy to use. I have made a simple page with OperaMasks framework (that is, using its TabLayout layout, plus a little text), and I actually need to download a file about the size of 800kb. And the development process is very careful, do not make mistakes, if you are not very familiar with the principle of JSF, the process of picking mistakes is very painful. It is difficult to personalize JSF components. Although it is said that the JEE standard is defined by JSF's Sun, sometimes the "standard" is not a panacea. For example, there are so many stock market experts in China who guide the stock market on the Internet and television, but there are still many investors who listen to the experts and do not make much money.

Struts architecture design is relatively simple, using controller-based navigation and page navigation, it is also easy to expand, and combined with FreeMarker can easily customize the tag library, very convenient, but Struts 1.x configuration steps are too cumbersome, need to define HTTP request and response mapping and all ActionForm objects and so on. Struts 2.x seems to have improved, but so far there don't seem to be many references and applications for Struts 2.x.

Spring MVC's architecture is well designed and can be easily integrated with other frameworks such as JSP, JSTl, FreeMarker, and Tiles, providing powerful dependency injection capabilities, but I don't like it if you want to configure a lot of XML files to use it, and it doesn't support AJAX enough, which makes it lose a lot of users.

The full name of GWT is Google Web Toolkit, and as you can see from its name, it is currently positioned as a toolset, not a framework, and it does not seem easy to develop Web applications using GWT alone.

Lift is a Web development framework based on Scala, and its hypothetical competitor is Grails based on Groovy, but at present, it is not very mature and well-known, but referring to the development trend of Scala, Lift should have great potential for development and deserve attention.

In fact, I think Eclipse RAP framework is very good, is based on Qooxdoo AJAX framework, from architecture to implementation, are very excellent, support OSGI, and plug-in management, you can develop Web programs like RCP, migration from RCP to RAP does not take a lot of trouble, but one of the problems facing RAP is the running speed of the system (if Moore's Law is still valid and can also be applied to the development speed of network broadband. So RAP is definitely a technology worth investing in. There are also foreign companies have developed RAP commercial products, I tried it, very amazing very good.

Now it's Wicket's turn. Wicket is a simplified framework for building and testing dynamic Web pages developed by Sun's Swing UI team. It is an open source, lightweight, component-based framework that only uses Java and HTML code and is built on Servlet API. Wicket defines the role boundaries between HTML page designers and Java developers through HTML-based templates. Templates can be generated using any HTML design tool, which means that Wicket allows you to focus more on the implementation of the application's business logic. If you have SWT/Swing development experience, know little about other Web frameworks and move towards Web development, then Wicket must be very suitable for you. And the performance of Wicket is good. When it comes to Wicket, you have to mention Tapestry. The two frameworks are similar in many places. You can see Tapestry competing for Wicket posts on the Internet, but some people say that "Wicket is the reconstructed Tapestry." Now you know who to choose. Of course, Wicket also has its shortcomings. To master Wicket, you need to understand Java. It is easy to master Wicket if you have the idea of object-oriented programming.

After reading the above, do you have any further understanding of the ideal Java Web development framework? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report