a亚洲精品_精品国产91乱码一区二区三区_亚洲精品在线免费观看视频_欧美日韩亚洲国产综合_久久久久久久久久久成人_在线区

首頁(yè) > 編程 > ASP > 正文

jsp強(qiáng)于asp,但不是asp.net

2019-11-18 20:52:32
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
By Corey Roth, Senior Web Developer
Special to ZDNet

Fo r a while, the java 2 EnterPRise Edition (J2EE) architecture looked like the best way to develop multi-tiered applications. Java Server Pages (jsp) and servlets had many advantages over the Active Server Pages (asp) and Component Object Model (COM+) platforms. However, I think that is about to change with Microsoft .Net on the horizon. Microsoft .Net is providing a similar platform but with more functionality, and it quite possibly could have the foundation for being cross-platform at some stage. According to Sun, JSP is better than ASP for the following reasons: It has platform and server independence, it has extensible JSP tags and ASP is interpreted. Luckily, ASP .Net changes all of this.
The biggest argument why Java is superior is that it is a cross-platform environment. Having cross-platform is great, but at what cost? Java is slow by design. With Java, every time you run your program it goes through the Java Virtual Machine, an interpreter, which then converts the Java byte codes to native code. Microsoft may end up having support for platform independence with the way programs are compiled with Microsoft .Net.

When a program is compiled with .Net, it is compiled into a DLL or EXE in Microsoft Intermediate Language (MSIL) format, a processor independent assembly language. MSIL does not contain any dependencies on any particular Operating system or architecture. The first time this EXE is executed, it uses Just In Time (JIT) compilation to convert the MSIL into native code. So the first time you run it, it may be slower, but subsequent executions will be faster. As you can see, this has the potential for adaptation to a cross-platform situation, but Microsoft hasn't made any promises of that yet.

Now, I don't know if Microsoft will ever actually convert .Net to work on other platforms, but they are putting the support in there for it. My response to cross-platform is: Who cares? For Java, all that means is that it works on 50 different types of Unix. As far as I am concerned, the Intel platform is the only one that is worth bothering with. Designwise it may be inferior to the Sparc or Alpha, but the Intel platform is the only one Microsoft develops for.

Of tags and scripts
ASP 3.0 does not have extensible tags, an advantage that JSP has held over ASP for quite some time. Now with ASP .Net, extensible tags are available. Through the use of Web Forms, ASP .Net is able to do data binding, form validation and more without the developer having to write any script at all. Developers even have the ability to write their own custom Web Form controls to suit their own needs.

Another problem in the past with ASP was that it was an interpreted language, whereas JSP pages are compiled into servlets the first time the JSP page is accessed. What Sun neglects to mention is that the servlet is still interpreted with the Java Virtual Machine. With ASP .Net, pages will now be precompiled to MSIL and then use JIT compiling, just like JSP. The difference is .Net gets compiled once into native code, and servlets are interpreted every time they are executed. In the long run, I think this will result in .Net code being more efficient.

Microsoft's .Net may not be perfect. Since it still is in beta, it may change quite a bit before it is actually released. However, I think it is a great alternative to what we had before. In the past, using COM and the Microsoft Transaction Server (MTS) was a nightmare for developers and using J2EE was slower than death. I admit for a long time, the J2EE platform was superior to ASP and COM+. With .Net coming soon, Sun should be looking for new ways to improve its platform and remain competitive. Otherwise, it may be losing future developers.

Corey Roth is a Senior Web Developer for Word Spinners, a Tulsa, OK-based Web development company. He has five years of experience in developing Web sites, and started his Web development career at Creative Labs. Corey is also considered a local expert in Microsoft technologies, including Active Server Pages, COM+ and Microsoft Site Server.

Disclaimer: 'Your Turn' is a commentary column written by a ZDNet News reader. The opinions expressed herein are those of the author, not those of ZDNet, ZDNet News nor its editors.



發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表

圖片精選

主站蜘蛛池模板: 国产亚洲精品久 | 日韩三级在线 | 欧美片网站免费 | 伊人久久综合 | 精品国产一区二区三区久久久 | 在线精品亚洲欧美日韩国产 | 色播99 | 亚洲精品久久久狠狠狠爱 | 在线播放ヘンリー冢本原作 | 91久久精品一区 | 农村少妇一级片 | 亚洲精品午夜国产va久久成人 | 狠狠骚| a黄视频 | 国产精品久久久久久久久久久久 | 色呦呦日韩 | 一区二区精品在线 | 3bmm在线观看视频免费 | 久久久高清 | 日本视频中文字幕 | 亚洲成人在线视频播放 | 亚洲欧美韩国 | 久久精品国产精品青草 | 国产高清不卡一区二区三区 | 视频在线一区 | 国产女人和拘做受视频 | 天天干狠狠操 | 久在线视频| 欧美一级淫片免费看 | 亚洲精品视频一区 | 国产精品国产精品国产专区不卡 | 黄色网址免费在线观看 | 欧美 日韩 亚洲 一区 | 涩涩视频网站在线观看 | 色悠悠久久 | 成人亚洲视频 | 亚洲三级黄 | 久久精品免费电影 | 日韩视频中文 | 综合视频一区二区三区 | 亚洲六月丁香色婷婷综合久久 |