🗊 Презентация Java Server Pages

Нажмите для полного просмотра!
Java Server Pages, слайд №1 Java Server Pages, слайд №2 Java Server Pages, слайд №3 Java Server Pages, слайд №4 Java Server Pages, слайд №5 Java Server Pages, слайд №6 Java Server Pages, слайд №7 Java Server Pages, слайд №8 Java Server Pages, слайд №9 Java Server Pages, слайд №10 Java Server Pages, слайд №11 Java Server Pages, слайд №12 Java Server Pages, слайд №13 Java Server Pages, слайд №14 Java Server Pages, слайд №15 Java Server Pages, слайд №16 Java Server Pages, слайд №17 Java Server Pages, слайд №18 Java Server Pages, слайд №19 Java Server Pages, слайд №20 Java Server Pages, слайд №21 Java Server Pages, слайд №22 Java Server Pages, слайд №23 Java Server Pages, слайд №24 Java Server Pages, слайд №25 Java Server Pages, слайд №26 Java Server Pages, слайд №27 Java Server Pages, слайд №28 Java Server Pages, слайд №29 Java Server Pages, слайд №30 Java Server Pages, слайд №31 Java Server Pages, слайд №32 Java Server Pages, слайд №33 Java Server Pages, слайд №34

Вы можете ознакомиться и скачать презентацию на тему Java Server Pages. Доклад-сообщение содержит 34 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


Java 4 WEB Lesson 13 – Java Server Pages
Описание слайда:
Java 4 WEB Lesson 13 – Java Server Pages

Слайд 2


Lesson goals Why not servlets What if not servlets Expression Language Tag Libraries
Описание слайда:
Lesson goals Why not servlets What if not servlets Expression Language Tag Libraries

Слайд 3


Servlet drawbacks Not simple to maintain - business logic mixed with presentation logic Slow development - servlet code needs to be updated and...
Описание слайда:
Servlet drawbacks Not simple to maintain - business logic mixed with presentation logic Slow development - servlet code needs to be updated and recompiled if we have to change the look of the application. Too much non-reusable copy-paste Servlet can be viewed as "HTML inside Java"

Слайд 4


JSP (Java Server Page) JSP is high-level abstraction of Java Servlets JSP is a text document that contains two types of text: static data (HTML, SVG,...
Описание слайда:
JSP (Java Server Page) JSP is high-level abstraction of Java Servlets JSP is a text document that contains two types of text: static data (HTML, SVG, WML, and XML) JSP elements, which construct dynamic content JSPs servlet is cached and re-used until the original JSP is modified

Слайд 5


JSP Example First JSP JSP Page
Описание слайда:
JSP Example First JSP JSP Page

Слайд 6


JSP life cycle
Описание слайда:
JSP life cycle

Слайд 7


JSP vs Raw Servlet Extension to Servlet (supplement each other) Easier to maintain Faster Development: no necessity to recompile and redeploy Less...
Описание слайда:
JSP vs Raw Servlet Extension to Servlet (supplement each other) Easier to maintain Faster Development: no necessity to recompile and redeploy Less code than Servlet

Слайд 8


Folders structure with direct access to jsp
Описание слайда:
Folders structure with direct access to jsp

Слайд 9


Folders structure without direct access to jsp
Описание слайда:
Folders structure without direct access to jsp

Слайд 10


JSP Example with Java inside HTML JSP Scriptlet is used to used to execute java source code in JSP JSP Expression - evaluates a single Java...
Описание слайда:
JSP Example with Java inside HTML JSP Scriptlet is used to used to execute java source code in JSP JSP Expression - evaluates a single Java expression and display its result. Current Time:

Слайд 11


JSP Example with Java inside HTML 3. Declaration tag Square : 4. Directives tag
Описание слайда:
JSP Example with Java inside HTML 3. Declaration tag Square : 4. Directives tag

Слайд 12


JSP Example with Java inside HTML (scriptlet) First JSP 0.5) { %> You'll be geek!() Well, you won’t be geek ... ()
Описание слайда:
JSP Example with Java inside HTML (scriptlet) First JSP 0.5) { %> You'll be geek!() Well, you won’t be geek ... ()

Слайд 13


MVC Architecture of building applications is called MVC Model - classes of business logic and long-term storage View - JSP pages Controller - servlet.
Описание слайда:
MVC Architecture of building applications is called MVC Model - classes of business logic and long-term storage View - JSP pages Controller - servlet.

Слайд 14


Using JSP with Servlet @WebServlet(name = "userPageServlet", urlPatterns = "/userpage") public class UserServlet extends...
Описание слайда:
Using JSP with Servlet @WebServlet(name = "userPageServlet", urlPatterns = "/userpage") public class UserServlet extends HttpServlet { @Override protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException { req.setAttribute("username", "Johny"); req.getRequestDispatcher("/WEB-INF/pages/userIntro.jsp").forward(req, resp); } }

Слайд 15


index.jsp vs custom.jsp @WebServlet(name = "custom", urlPatterns = "/custom-page") public class CustomServlet extends HttpServlet...
Описание слайда:
index.jsp vs custom.jsp @WebServlet(name = "custom", urlPatterns = "/custom-page") public class CustomServlet extends HttpServlet { @Override protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException { req.getRequestDispatcher("/pages/some-another.jsp").forward(req, resp); } }

Слайд 16


JSP expression language (EL) ${username} , ${user.name} Hello, ${author.name}, Bean is searched by container in the next order: page request session...
Описание слайда:
JSP expression language (EL) ${username} , ${user.name} Hello, ${author.name}, Bean is searched by container in the next order: page request session application scopes otherwise returns null

Слайд 17


JSP Implicit Objects
Описание слайда:
JSP Implicit Objects

Слайд 18


Tag libraries Advantages of using Tag Libs: - get rid of "scriptlets" - a simple HTML-like syntax - JSP code can be modified by HTML...
Описание слайда:
Tag libraries Advantages of using Tag Libs: - get rid of "scriptlets" - a simple HTML-like syntax - JSP code can be modified by HTML developers - code reuse

Слайд 19


JSP Tags syntax body or if no body
Описание слайда:
JSP Tags syntax body or if no body

Слайд 20


JSP Tags types 1. Predefined (start with "jsp:") 2. External (custom tag libraries).
Описание слайда:
JSP Tags types 1. Predefined (start with "jsp:") 2. External (custom tag libraries).

Слайд 21


JSP Tag Example Hello,
Описание слайда:
JSP Tag Example Hello,

Слайд 22


JSTL The standard JSP tag library (JSL) is an extension of the JSP specification that adds a JSP tag library for general purposes, such as parsing...
Описание слайда:
JSTL The standard JSP tag library (JSL) is an extension of the JSP specification that adds a JSP tag library for general purposes, such as parsing XML data, conditional processing, creating loops, and supporting internationalization.

Слайд 23


JSTL Examples Core Tags - basic tags, provide iteration, exception handling, url, forward and redirect response, etc. Formatting and Localization...
Описание слайда:
JSTL Examples Core Tags - basic tags, provide iteration, exception handling, url, forward and redirect response, etc. Formatting and Localization Tags - formatting tags, provide opportunities for formatting Numbers, Dates and support for i18n localization and resource bundles. SQL Tags - tags for working with SQL, support for working with databases like MySQL, Oracle, etc. XML Tags - tags for working with XML documents. For example, for parsing XML, converting XML data, and executing XPath expressions. JSTL Functions Tags - function-tags for processing strings, provides a set of functions that allow you to perform various operations with strings, etc. For example, by concatenating or splitting strings.

Слайд 24


JSTL core tags
Описание слайда:
JSTL core tags

Слайд 25


JSTL formatting tags
Описание слайда:
JSTL formatting tags

Слайд 26


JSTL other tags ${fn:contains()} ${fn:endsWith()} ${fn:indexOf()} ${fn:split()} ${fn:substring()} ${fn:toUpperCase()} ${fn:escapeXml()} ${fn:join()}...
Описание слайда:
JSTL other tags ${fn:contains()} ${fn:endsWith()} ${fn:indexOf()} ${fn:split()} ${fn:substring()} ${fn:toUpperCase()} ${fn:escapeXml()} ${fn:join()} ${fn:replace()} ${fn:startsWith()} ${fn:toLowerCase()} ${fn:trim()}

Слайд 27


Creating custom tag library Extend classes TagSupport or BodyTagSupport (JSP Custom Tag Handler) group: 'javax.servlet.jsp', name: 'jsp-api',...
Описание слайда:
Creating custom tag library Extend classes TagSupport or BodyTagSupport (JSP Custom Tag Handler) group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.0' Write Tag Lib Definition file (my-tag-lib.tld) Connect your tag library into JSP file and use it

Слайд 28


Example: structure + servlet @WebServlet(name = "homeServlet", urlPatterns = "/home") public class HomeServlet extends...
Описание слайда:
Example: structure + servlet @WebServlet(name = "homeServlet", urlPatterns = "/home") public class HomeServlet extends HttpServlet { @Override protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException { req.setAttribute("users", Arrays.asList("Rikki", "Tommy", "Johny")); req.getRequestDispatcher("/WEB-INF/home.jsp").forward(req, resp); } }

Слайд 29


Example: home.jsp Home
Описание слайда:
Example: home.jsp Home

Слайд 30


Example: calendar.jsp Today is
Описание слайда:
Example: calendar.jsp Today is

Слайд 31


Example: user-list.jsp Username: need Jerry need Tikki need a gun
Описание слайда:
Example: user-list.jsp Username: need Jerry need Tikki need a gun

Слайд 32


Literature Java EE tutorial (3-9) JSP Tutorial Introduction to Java Server Pages
Описание слайда:
Literature Java EE tutorial (3-9) JSP Tutorial Introduction to Java Server Pages

Слайд 33


Homework Task 1 Implement a simple editing form on Servlet-JSP (JSTL) data stored in the session. Implement output of data using Custom Taglib (keep...
Описание слайда:
Homework Task 1 Implement a simple editing form on Servlet-JSP (JSTL) data stored in the session. Implement output of data using Custom Taglib (keep "add" inside the JSP) If any error happens – log and redirect user to custom error page Add request blocking filter. Only user with Google Chrome 65 or later can access site – otherwise block requests and show error page. Add request logging filter. Log endpoints path and total execution time. Should measure all actions (even when request blocked) Add request blocking filter. Deny all operations if time between 1AM-7AM. Microsoft Edge users should never come here and be stopped by user-agent filter. Attributes lists should not be shared between two browsers

Слайд 34


Homework 1
Описание слайда:
Homework 1



Теги Java Server Pages
Похожие презентации
Mypresentation.ru
Загрузить презентацию