Jsp tutorial на русском

Dating > Jsp tutorial на русском

Download links:Jsp tutorial на русскомJsp tutorial на русском

В остальных случаях использование этого действия не имеет значения. It can be thought of as an extension to servlet because it provides more functionality than servlet such as expression language, jstl etc. Данный атрибут может принимать значение true или false, которые определяют принимает ли участие JSP страница в трансляции. Table Of Contents 1. Translation In the first stage, the web container translates the JSP document into an equivalent Java code. С помощью действия jsp:params можно задать сразу несколько параметров Действие jsp:plugin Это действие позволяет вам вставить элемент OBJECT или EMBED в зависимости от типа используемого браузера , необходимый для запуска аплетов, использующих plugin Java. А вот на роль представления View прекрасно подходит JSP — Java Server Pages.

JSP Tutorial JSP technology is used to create web application just like Servlet technology. It can be thought of as an extension to servlet because it provides more functionality than servlet such as expression language, jstl etc. A JSP page consists of HTML tags and JSP tags. The jsp pages are easier to maintain than servlet because we can separate designing and development. It provides some additional features such as Expression Language, Custom Tag etc. Advantage of JSP over Servlet There are many advantages of JSP over servlet. They are as follows: 1 Extension to Servlet JSP technology is the extension to servlet technology. We can use all the features of servlet in JSP. In addition to, we can use implicit objects, predefined tags, expression language and Custom tags in JSP, that makes JSP development easy. In servlet technology, we mix our business logic with the presentation logic. The servlet code needs to be updated and recompiled if we have to change the look and feel of the application. Moreover, we can use EL, implicit objects etc. As depicted in the above diagram, JSP page is translated into servlet by the help of JSP translator. The JSP translator is a part of webserver that is responsible to translate the JSP page into servlet. Afterthat Servlet page is compiled by the compiler and gets converted into the class file. Moreover, all the processes that happens in servlet is performed on JSP later like initialization, committing response to the browser and destroy. Creating a simple JSP Page To create the first jsp page, write some html code as given below, and save it by. We have save this file as index. Put it in a folder and paste the folder in the web-apps directory in apache tomcat to run the jsp page. We will learn scriptlet tag later. It will print 10 on the browser. How to run a simple JSP Page? No, there is no need of directory structure if you don't have class files or tld files. For example, put jsp files in a folder directly and deploy that folder. It will be running fine. But if you are using bean class, Servlet or tld file then directory structure is required. Directory structure of JSP The directory structure of JSP page is same as servlet. We contains the jsp page outside the WEB-INF folder or in any directory. TOPICS of JSP Tutorial.

Last updated