When asp.net hits JSF's frame comparison

Source: Internet
Author: User
Tags comparison implement classic asp mysql database visual studio
Asp.net|js| comparing using Classic ASP or JSP technology to build an application often means mixing code with HTML annotations. However, in the early stages of creating these technologies, these platforms provide more advantages for building Web applications than the methods used before. Both JSP and ASP provide similar object models, such as the use of objects including request,response and sessions in both JSP and ASP applications. There is now no real software attempt to obscure the complexity of the stateless features of the HTTP protocol.

Asp. NET and JSF frameworks are both component-based and event-driven. That is, a component on a form responds to user action by activating the application event. These events provide the opportunity for developers to write code to implement the necessary logic. This is very different from JSP and ASP based on "request-driven" development. The goal is to create a more intuitive programming model-similar to building a Visual Basic or Java Swing desktop application. In fact, JSF and ASP.net Web pages are a collection of components. Each framework provides a set of standard components, and there are already a large number of individuals and open source and business organizations in the marketplace that provide a variety of custom components (called "Controls" in asp.net). Recently, Microsoft has released ASP.net 2.0, which has added more components than its previous version. Unlike ASP.net, which is owned only by a single vendor, JSF is a standard specification-it is developed by many home EE vendors. In addition to the reference implementations provided by Sun and many vendors have added their own component libraries, there are a number of other implementations. JSF is a newer technology than ASP.net, and although it is lagging behind in the current component market, the market share of JSF components is growing.

Although you can use a simple text editor to build asp.net and JSF applications, it is better to use the IDE. Therefore, it is critical that you choose a good tool when building asp.net or JSF applications. Some excellent Ides, such as Microsoft's Visual Studio.NET or Sun Java Studio Creator, allow you to drag components from the palette onto the page and customize their behavior and appearance by using the property editor (refer to the figure below). Recently, with the introduction of. NET 2.0, Microsoft has announced a free Express version of Visual Studio.NET, which can be compatible with its commercial version. However, Sun Java Studio Creator is also a free tool. In this article, I will use both the Visual Studio.NET Express Edition and Sun's Java Studio Creator.



Visual Studio/java Studio Creator Palette

From now on, we're going to build a simple application that employees can use to book meeting rooms. This program, although simple, provides enough features to implement the purpose of this article. When we build the application, we'll discuss the core concepts in both frameworks together. In both of the sample applications in this article, they all use the same MySQL database that contains two database tables (Conference_rooms and room_reservations). Some sample data are included in these tables. For detailed SQL, see the Install_tables.sql file in the source code of this article.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.