O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

4.1.4 Configuring JSP in web

faiz alias Information Technology Inglês

Conteúdo do mapa

4.1.4 Configuring JSP in web

  1. An app can use JavaServer Pages (JSPs) to implement web pages. JSPs are servlets defined using static content (such as HTML) mixed with Java code.

  2. If you want more control over how the JSP is mapped to a URL, you can specify the mapping explicitly by declaring it with a <servlet> element in the deployment descriptor. Instead of a <servlet-class> element, you specify a <jsp-file> element with the path to the JSP file from the WAR root. The <servlet> element for the JSP can contain initialization parameters.

  3. Configuring JSP Tag Libraries

    • Weblogic Server, in accordance with the Servlet 2.2 specification provides the ability to create and use custom JSP tags.
    • Custom JSP tags are Java classes that can be called from within a JSP page.
    • To create custom JSP tags, you place them in a tag library and define their behavior in a tag library descriptor (TLD) file.
    • You can install JSP tag libraries with the <taglib> element.
    • Note that App Engine provides the JavaServer Pages Standard Tag Library(JSTL), and you do not need to install it.
  4. Configuring JSP Tag Libraries - Cont

    • A tag library has a path to the JSP Tag Library Descriptor (TLD) file (<taglib-location>) and a URI that JSPs use to select the library for loading (<taglib-uri>). This URI pattern must match the value in the taglib directive in your JSP pages.
    • This TLD must be made available to the Web Application containing the JSP by defining it in the Web Application deployment descriptor.
  5. Configuring JSP Tag Libraries - Cont

    • For example, if the taglib directive in the JSP page is: <%@ taglib uri="myTaglib" prefix="taglib" %>
    • and the TLD is located in the WEB-INF directory of your Web Application, you would create the following entry in the Web Application deployment descriptor: <taglib>     <taglib-uri>myTaglib</taglib-uri>    <taglib-location>WEB-INF/myTLD.tld</taglib-location> </taglib>

Informações

Descrição
Information Technology Mapa Mental sobre 4.1.4 Configuring JSP in web, criado por faiz alias em 25-02-2019.
Criado por
faiz alias
Visualizações
5
Avaliação

Mais sobre Java Servlets, JSP and Web Applications

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?