Let's get to know the JSP together

Source: Internet
Author: User
Tags comparison expression odbc access stock prices
JS Java Server Pages (JSP) is the most popular technology to build dynamic Web pages. Technology world in the previous period of time for you to introduce some of the content of JSP, now do a simple summary, so that readers can more easily read these articles.

What is a JSP? What is it for? Do I need a JSP? First Contact JSP, I believe many people will have such a doubt. Let's take a look at the JSP technology in the eyes of a developer, and perhaps your earlier questions will vanish.
See JSP, People always associate ASP, after all, they look very similar from the name, JSP and ASP What is the difference? Dynamic Web page Production technology JSP and ASP comparison will tell you one or two.
Since the mention of ASP, then I suggest that you look at asp+ and JSP between the choice. This is a very distinctive article, Chinese programmers can see from this article very clearly in the minds of the American programmer. The previous "Dynamic Web page Production technology JSP and ASP comparison", from the theoretical perspective of the comparison of ASP and JSP. In contrast, this article, translated from the United States, seems more meaningful: on the one hand, we can see the difference between asp+ and JSP from the perspective of practice, on the other hand, and more importantly, we can clearly understand the true mentality of an American programmer, how he thinks of asp+ and JSP, And why he currently chooses JSP technology. Some programmers may feel that such a pure contrast does not have any practical significance, even a bit of "trouble", but I think we are the pursuit of technology and understanding should be multifaceted, listen to other people's opinions and views will always be beneficial.
Through the introduction of the above several articles, you should have some understanding of JSP. Here is a specific introduction to the use of JSP.

Introduction to JSP Development 123: Through this article installs your machine to use the JSP, the JSP Grammar basic principle, the JSP and JavaBean, the JSP internal object, the JSP other related resources and so on some column content introduction, we will help you to build an executable JSP example website.
JSP Concise Tutorial: This article is compiled from the Netscape company related Materials. In this paper, JSP and its related technologies are introduced in more detail, hoping to learn and understand the JSP technology to help.
In this article, we'll introduce you to the features, target users, and uses of JSP, and compare it to the identification language of Netscape's current technologies such as SSJS and Nas.

This tutorial is divided into four articles: JSP Foundation, behavior tag and example, exciting scripting, comparison and summary.
Examples of JSP MODEL2 architecture: There are a number of related introductions, and JSP is becoming an excellent Java technology that can be used to create dynamic Web applications. There are countless reasons why Java programmers love JSP. Some people like the way it brings the "write, use everywhere" approach to interactive pages; others appreciate it because it is easy to learn and enables them to use Java as a server-side scripting language. But most of all because of a common cause-the best thing about using JSP is that it helps you effectively separate the expression from the content. In this article, I delve into the following questions: How to use the JSP Model 2 architecture to get the best expression-content separation effect. This model can also be seen as an implementation of the universal MVC design pattern on the server side. Note that before you read this article, you need to be familiar with basic JSP and servlet programming, as there will be no grammatical rules involved in the text.
JSP Template Application Guide: The Window Toolkit provides a typical layout mechanism, such as determining the location of a part element in a container. There are layout managers in both AWT and swing, and wrapper in VisualWorks Smalltalk. This article introduces a JSP template mechanism that allows the layout to be encapsulated and recycled. The JSP template minimizes the impact of layout changes, and here we encourage you to adopt a modular design of encapsulation.
JavaBean application in JSP: JavaBean is a Java based software component. JSP provides complete support for integrating JavaBean components in WEB applications. This support not only shortens development time (can directly leverage tested and trusted existing components, avoids duplication of development), but also provides more scalability for JSP applications. The JavaBean component can be used to perform complex computational tasks, or to interact with the database and to extract data. If we have three JavaBean, each with a feature that displays news, stock prices, and weather conditions, then creating a Web page that contains all three features requires only instantiating the three beans and using HTML tables to locate them in turn.
Accessing database methods in JSPs: Database connections are the most important part of a dynamic web site, and the technology for connecting to the database in Java is JDBC (Java Database Connectivity). Many database systems have JDBC drivers, and Java programs connect to the database through the JDBC driver, executing queries, fetching data, and so on. Sun also developed JDBC-ODBC Bridge, which uses Java programs to access databases with ODBC drivers, and most database systems now have ODBC drivers, so Java programs can access Oracle, Sybase, MS SQL Databases such as server and MS Access. This article presents an example of using JavaBeans to access the Access customer information database through JDBC-ODBC Bridge in JSP.
Okay, so many of the advantages of JSP, and finally let us to a special say JSP insufficient article to make the end bar.

We have to admit that absolutely perfect things do not exist in this world. Although JSP more and more attention from all walks of life, there are more programmers to start using it, but we still should remember someone said: "I think JSP has a problem." Whether you think of him as a well-meaning reminder or a personal bias, we cannot ignore it. In fact, when the original text of this article first appeared in foreign countries, JSP is just a budding technology, and not as now in the heyday. Now it seems that some of the ideas of this article may have some limitations, but I have to admit that this is a very atmospheric work, which involves many of the intrinsic principles of JSP. Therefore, I think it is necessary to introduce this article to you, so that you from another side of a more in-depth understanding of JSP technology.

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.