菜单
  
     JSP Versus .NET and Active Server Pages (ASP).    NET is well-designed technology from Microsoft. ASP.NET is the part that directly competes with servlets and JSP. The advantages of JSP are two fold. First, JSP is portable to multiple operating systems and Web servers; you aren't locked into deploying on Windows and IIS. Although the core .NET platform runs on a few non-Windows platforms, the ASP part does not. You cannot expect to deploy serious ASP.NET applications on multiple servers and operating systems. For some applications, this difference does not matter. For others, it matters greatly.Second, for some applications the choice of the underlying language matters greatly. For example, although .NET's C# language is very well designed and is similar to Java, fewer programmers are familiar with either the core C# syntax or the many auxiliary libraries. In addition, many developers still use the original version of ASP. With this version, JSP has a clear advantage for the dynamic code. With JSP, the dynamic part is written in Java, not VBScript or another ASP-specific language, so JSP is more powerful and better suited to complex applications that require reusable components.39595
        You could make the same argument when comparing JSP to the previous version of ColdFusion; with JSP you can use Java for the "real code" and are not tied to a particular server product. However, the current release of ColdFusion is within the context of a J2EE server, allowing developers to easily mix ColdFusion and servlet/JSP code.
    2  JSP Versus PHP
        PHP (a recursive acronym for "PHP: Hypertext Preprocessor") is a free, open-source, HTML-embedded scripting language that is somewhat similar to both ASP and JSP. One advantage of JSP is that the dynamic part is written in Java, which already has an extensive API for networking, database access, distributed objects, and the like, whereas PHP requires learning an entirely new, less widely used language. A second advantage is that JSP is much more widely supported by tool and server vendors than is PHP.
    3  JSP Versus Pure Servlets
        JSP doesn't provide any capabilities that couldn't, in principle, be accomplished with servlets. In fact, JSP documents are automatically translated into servlets behind the scenes. But it is more convenient to write (and to modify!) regular HTML than to use a zillion println statements to generate the HTML. Plus, by separating the presentation from the content, you can put different people on different tasks: your Web page design experts can build the HTML by using familiar tools and either leave places for your servlet programmers to insert the dynamic content or invoke the dynamic content indirectly by means of XML tags.
    Does this mean that you can just learn JSP and forget about servlets? Absolutely not! JSP developers need to know servlets for four reasons:
        1. JSP pages get translated into servlets. You can't understand how JSP works without understanding servlets.
        2. JSP consists of static HTML, special-purpose JSP tags, and Java code. What kind of Java code? Servlet code! You can't write that code if you don't understand servlet programming.
        3. Some tasks are better accomplished by servlets than by JSP. JSP is good at generating pages that consist of large sections of fairly well structured HTML or other character data. Servlets are better for generating binary data, building pages with highly variable structure, and performing tasks (such as redirection) that involve little or no output.
        4. Some tasks are better accomplished by a combination of servlets and JSP than by either servlets or JSP alone.
        4  JSP Versus JavaScript
        JavaScript, which is completely distinct from the Java programming language, is normally used to dynamically generate HTML on the client, building parts of the Web page as the browser loads the document. This is a useful capability and does not normally overlap with the capabilities of JSP (which runs only on the server). JSP pages still include SCRIPT tags for JavaScript, just as normal HTML pages do. In fact, JSP can even be used to dynamically generate the JavaScript that will be sent to the client. So, JavaScript is not a competing technology; it is a complementary one.
  1. 上一篇:网络学习与交互英文文献和中文翻译
  2. 下一篇:光电传感器英文文献和中文翻译
  1. ADO.NET结构与概述英文文献和中文翻译

  2. MySQL和JSP的Web应用程序英文文献和中文翻译

  3. JSP的技术英文文献和中文翻译

  4. JSP应用框架英文文献中文翻译

  5. JSP的英文文献和中文翻译

  6. JSP英文文献和中文翻译

  7. JSP技术简介及特点英文文献和中文翻译

  8. 浅析中国古代宗法制度

  9. C++最短路径算法研究和程序设计

  10. g-C3N4光催化剂的制备和光催化性能研究

  11. 高警觉工作人群的元情绪...

  12. 巴金《激流三部曲》高觉新的悲剧命运

  13. 上市公司股权结构对经营绩效的影响研究

  14. 现代简约美式风格在室内家装中的运用

  15. 中国传统元素在游戏角色...

  16. 江苏省某高中学生体质现状的调查研究

  17. NFC协议物理层的软件实现+文献综述

  

About

优尔论文网手机版...

主页:http://www.youerw.com

关闭返回