• 国庆第三天


    一. Spring MVC  标签库

    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
    <%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>

    二. Spring Form tags:

    1. checkbox tag
    2. checkboxes tag
    3. errors tag
    4. form tag
    5. hidden tag
    6. input tag
    7. label tag
    8. option tag
    9. options tag
    10. password tag
    11. radiobutton tag
    12. radiobuttons tag
    13. select tag
    14. textarea tag

    三. Spring spring.tld tags:

    1. bind tag
    2. escapeBody tag
    3. hasBindErrors tag
    4. htmlEscape tag
    5. message tag
    6. nestedPath tag
    7. theme tag
    8. transform tag

    四. JSTL Tags:

  • Introduction to JSTL - JSP Standard Tag Library
    What is JSP JSTL and its benefits?
    History of JSTL ( about Jakarta Taglibs project) (jstl-history.shtml)
    Why JSTL?
    What are the disadvantages of JSTL?
    Overview of all the JSTL tags
    JSTL Versions (jstl-versions.shtml)
    JSTL Tags Quick Example (jstl-tags.shtml)
    JSTL Example to clean up scriptlets
    New Features in EL 2.0
  • Downloading and Installing the JSTL
    Downloading JSTL
    Configuring JSTL (jstl-configuration.shtml)
    Configuring JSTL on Tomcat (jstl-tomcat.shtml)
    Configuring JSTL on WebLogic Server
    Configuring JSTL on Websphere (jstl-websphere.shtml)
    Configuring JSTL on Geronimo Application Server (jstl-geronimo.shtml)
    Configuring JSTL on JBoss
    Configuring JSTL on Oracle Application Server
    Configuring JSTL on JEE Glash Fish application Server
    Hello World JSTL
  • JSTL Implicit Objects
  • Core JSTL Tags
  • Example of Variable Support Tags of JSTL Core Tag Library
  • Example of Flow Control Tags of JSTL Core Tag Library
  • Using tag <c:redirect> of Core JSTL tags
    In this example we have used Core JSTL tag <c:redirect> that is used to redirect the page to given url, here param is used to get parameter from request.
  • Using <c:forEach> tag of Core JSTL tags
    In this example we have used Core JSTL tag <c:forEach> that is used to get values from an array, here paramValues returns an array of String type of request.
  • Retrieve data from database by using sql tag of JSTL SQL library
    Here in this section we will see how retrieve data from database using sql query given by user. To execute query first create a data source and then execute sql query for that data source.
  • Insert data in database by using sql tag of JSTL SQL library
    Here in this section we are going to create application that update database by inserting data given by user. To update database first create a data source and then execute insert sql query for that data source.
  • Execute database query by using sql tag of JSTL SQL library
    Here in this section we are going to create application that execute sql query given by user using JSTL SQL Library. To execute query first create a data source and then execute sql query for that data source.
  • Create URL using <c:url> tag of JSTL Core tag library
    Here in this example we are going to create a url according to the user's given parameter by using <c:url> tag.
  • Use of <c:catch> tag of Core JSTL tags
    In this example we have used Core JSTL tag <c:catch> that is used to handle exception generated during run time. Here we will create a simple calculator to divide two numbers, if user enters values instead a digit, it shows a error message as a response.
  • Use of <sql:transaction> tag of jstl
    Here in this section we are going to create application that how to group queries and update operations by using <sql:transaction> tag of jstl.
  • Format date/time using <fmt:formatDate> tag of jstl
    Here in this section we will explain how to format date/time as per user requirment by using <fmt:formatDate> tag of JSTL.
  • Use of <x:set> tag of JSTL
    In this section we will learn how to use <x:set> tag of Xml tag library of Jstl. This tag is used to define variable and also initialize it.
  • Use of <x:parse> tag of JSTL
    In this section we will learn how to use <x:parse> tag of  Xml tag library of Jstl. This tag is used to parse the specified xml document.
  • Use of <x:out> tag of JSTL
    In this section we will learn how to use <x:out> tag of Xml tag library of Jstl. This tag is used to show the content as output for the given XPath expressions.
  • Use of <x:if> tag of JSTL
    In this section we will learn how to use <x:if> tag of Xml tag library of Jstl. This tag is used for selection of statements.
  • Use of <x:forEach> tag of JSTL
    In this section we will learn how to use <x:forEach> tag of Xml tag library of Jstl. This is xml iteration tag, can be used to retrieve values from xml document.
  • Use of <x:choose> tag of JSTL
    In this section we will learn how to use <x:choose> tag of Xml tag library of Jstl. This tag is used to perform conditional operations marked by <when> and <otherwise> tags.
  • Use of <x:param> tag of JSTL
    In this section we will learn how to use <x:param> tag of  Xml tag library of Jstl. This tag is used to add parameter to transform tag. When user want to transform more than one xml files then we will use <x:param> tag, to add xml files in transform tag.
  • Use of <x:transform> tag of JSTL
    In this section we will learn how to use <x:parse> tag of  Xml tag library of Jstl. This tag is used to transform the specified xml document. With the use of this tag we can display data from xml document in a format that is already defined in .xslt file.
  • JSTL EL Overview
    Expressions
    Identifiers
    Operators
    Type Coercion
    Literal Values
    Implicit Objects
    Method invocation
    EL Expression in custom actions
  • General purpose and conditional actions
    General purpose actions c:out, c:set, c:remove, c:catch
    Conditional action
    Using conditional and general-purpose actions together
  • Iteration Tags 
    c:for Each action
    c:forTokens action
    Iteration status
    Custom Iteration actions
  • URL Actions
    c:import action
    c:redirect action
    c:url action
    c:param action
    Accessing external resource from JSTL tags
  • Formatting actions
    Formatting and parsing numbers
    Formatting and parsing dates and times with DateTime
    Using Time Zone
    Determining a formatting locale
  • Database actions with the DBTags Library
    How JSTL locates data sources
    Creating data sources
    Querying and updating a database
    Executing database transactions
    Implementing database custom actions
    Using the DBTags and Input tag libraries together to create data-bound forms
  • File IO with IO Library
    Using IO tags to read text and bytes
    Using IO tags to write text and bytes
    Using IO tags for other file IO operations
  • XML Manipulation Tags
    Understanding XML and related technologies (XML, DTD, Schemas, XLS and XPath)
    XML action overview
    XPath overview
    Parsing XML
    Using scoped variables in XPath instructions
    Transforming XML with XSLT
    Filtering XML
    Accessing external entities
  • Additional useful tag library in JSTL
    Validating forms and data with the Regexp tag lib
    Using the Request and Response taglib to facilitate easier handling of JSP requests and response
    Using the session and Application taglibs
    Generating random numbers and strings with the Random taglib
    Sending email with the Mailer taglib
    Extracting Content from documents on the web with the scrape taglib
    Example to manipulate the String with the String taglib
  • 相关阅读:
    STM32标准库_05 | 用定时器写通用串口接收
    STM32标准库_04 | 串口接收不定长数据
    STM32标准库_03 | 串口printf打印
    STM32标准库_02 | 从按键开始认识状态机编程
    STM32标准库_01 | 搭建自己的程序框架
    STM32CubeMX的使用
    阿里云购买云服务器与域名
    阿里云物联网平台接入(使用MQTT协议)
    JAVA的JDK和API的区别是什么?
    Java经典实例
  • 原文地址:https://www.cnblogs.com/cpsing/p/2198370.html
  • Copyright © 2020-2023  润新知