SCWCD1.4 information

xiaoxiao2021-03-06  20

Start review is 080.

I saw a few seniors' posts, I know that 081 and 080 have a big difference.

The following is an increased two parts, for EL and JSTL.

Chapter 7. Building JSP Pages Using The Expression Language (EL)

Given a scenario (scheme; case; summary), write EL code that accesses the following implicit variables including: pageScope, requestScope, sessionScope, and applicationScope, param and paramValues, header and headerValues, cookie, initParam and pageContext.

TheRe SEVERAL IMPLCIT Objects That Are Available To el Expressions Used in JSP Pages. These Objects Are Are Always Available Under these names (Telling EL's implied objects and simple descriptions)

Then, several examples were raised, and there were EL. operations and [] operations.

Chapter 9. Building JSP Pages Using Tag Libraries

For a Custom Tag Library OR a Library of Tag Files, Create The 'Taglib' Directive for a JSP Page.

The Set of Significant (meaningful, significant, important) Tags a JSP Container Interprets (Explanation, Description) Can Be Extended THROUGH A TAG LIBRARY.

The taglib directive in a JSP page declares that the page uses a tag library, uniquely (uniquely, uniquely, rare earth) identifies the tag library using a URI and associates (the occurrence of contact, make joint) a tag prefix that will distinguish USAGE OF THE ACTIONS IN The Library.

IF a JSP Container Implementation Cannot Locate A Tag Library Description, A Fatal Translation Error Shall Result.

IT IS A Fatal Translation Error for the Taglib Directive to Appear AFTER ACTIONS OR FUNCTIONS Using The Prefix.

In the following example, a tag library is introduced and made available to this page using the super prefix; no other tag libraries should be introduced in this page using this prefix In this particular case, we assume the tag library includes a doMagic element type. , Which is buy within the page.

JSTL added part:

Given a Design Goal, Use An Appropriate (appropriate) JSP Standard Tag Library (JSTL V1.1) Tag from the "Core" Tag Library.The Center of Jstl Is The Core Taglib. This Can Be Split Into Five Areas:

General Purpose Variables Support Conditional Iterator URL Related

To Use the core library: USE The FOLLOWING DIRECTIVE:

<% @ taglib prefix = "c" URI = "http://java.sun.com/jstl/core"%> The prefix attribute specifies "The prefix sale in the tag name for a particular library . for example, the core library includes a tag named out When combined with a prefix of c, the full tag would be.. you are free to use any prefix you like, but you must use different prefixes for each Of The Four Standard Tag Libraries.

You Must Also Put The Corresponding (Classified) .tld File for Each Tag Library IN Your / Web-Inf Directory and Use Taglib Element in Your Web.xml File To include The Tag Library:

http://java.sun.com/jstl/core /Web-inf/tld/core.tld

General purpose tags.

The General-Purpose Tags Let You Display Variable Values, And Enclose (Closed, Sealed; Packaging, Envelope) a Group of Tags Withnin A Try-Catch Block.

SIMILAR TO JSP Expressions SIMILAR TO JSP Expressions Such AS <% = scripting-language-expression}. For Example:

You Have items.

The action allows page authors to handle errors from any action in a uniform (uniform, identical) fashion, and allows for error handling for multiple actions at once . Provides page authors with granular ( particle size [like) error handling: Actions that are of central importance to a page should not be encapsulated (sealed) in a , so their exceptions will propagate to an error page, whereas actions with secondary importance to the page should be wrapped in a , so they never cause the error page mechanism to be invoked (call) The exception thrown is stored in the scoped variable identified by var, which always has page scope If no exception occurred, the.. Scoped Variable Identified by Var Is Removed if it existed. IF var is missing, the exception is simply caught and not saved. NESTED (nested) ActionS This part basically involves all the contents of JSTL.

Including

Also

See http://java.boot.by/wcd-guide/ch09s03.html

转载请注明原文地址:https://www.9cbs.com/read-43905.html

New Post(0)