ASP. NET vs. jsp

Source: Internet
Author: User
You must know yourself and know him, as said by Sun Tzu. I learned about J2EE in three days (in fact, it is something that complies with the Java EE specifications developed by struts, spring, and hibernate j2se. Of course, there are still many J2EE frameworks, so I just get started with it, incorrect), slightly and ASP. net.

. Aspx and. jsp access process:

ASP. NET page is an httphandler, which processes requests to *. aspx by default. ASP. NET Request pipeline is roughly from IIS to aspnet_isapi-> httpmodule1-> httpmodule2->...-> httpmodulen-> httphandler-> response to IIS. Don't think page is special. It is only one of N httphandler and n control in ASP. NET.

The JSP page is a servlet. One way to access server resources is to directly access *. jsp, and the other is to access a servlet through servlet-mapping. No matter which one, the actual available rquest-> response process must go through more than one servlet. But it is hard to say that servlet is more like httpmodule or httphandler, because the request to which the file is generally sent to the servlet container (such as Tomcat) is not controllable, but the front-end server (such as APACHE ), after servlet iner is entered, the granularity of httpmodule and httphandler is not as detailed.

Webform model vs. MVC model:

There are too many differences .. You can look at an ASP. net MVC implementation of monorail and webform comparison, I personally feel that the enterprise application is definitely good MVC, the entire application logic is clear, easy to manage and maintain; webform advantages of a single page logic is clear, in addition, Visual Web Developer of vs provides good designview under the powerful IDE and Control Mechanism (BEA's JSP editor is an Eclipse plug-in and can also be used for visual development, but because JSP does not have the control concept, it is difficult to achieve accurate design time rendering ). Therefore, ASP. NET has a relatively high production capacity for small and medium-sized applications. However, in addition to factors such as the high cost of replacing existing systems and the bad Windows operating systems, it is hard for ASP. NET to do well. (However, I think it will be improved after combining with WF)

Data access:

I believe that more than 95% of web applications are database crud, and data access is definitely the most important. In Java, most pure ORM systems use hibernate, which is characterized by hard configuration,CodeElegance and speed (of course, the speed is closely related to the level of writing configuration files). Another compromise is that ibatis, this requires you to write your own SQL and then m to O. It feels a bit unpure, but the efficiency should be fine.

The Dal in ASP. NET is mostly transplanted (many XXX Java projects have been transplanted, adding N-or. NET to nxxx, XXX. net, and then searching for SF ..). The most famous ones are nhib.pdf and ibatis. net, and daab of Enterprise Library. Later, activerecord further encapsulated nhib.pdf, which looks good. However, a poor student did not have the opportunity to access big projects. It would be nice to use the cute subsonic to add a stored procedure, so I don't know which one is better ..

Day dreaming:

sun has promised that Java is open-source. net wants to use mono across platforms, M $ is a bit sorry. net Program .

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.