JavaWeb-page command

.JSP a three instructions (JSP page in a 0-N can write instructions, is not limited)

  1.page instructions: very common and most used properties

  2.include instructions: Static included

  3.taglib: import tag library

  4. Instruction format: <% ....% instruction name>

Two .Page instruction

  1. customary on the first JSP page, but on the other locations will do

  2. Common attributes:

    pageEncoding: Description of the current JSP page coding, coding and consistent statements on the attributes of the page coding will not be as long as garbled, or they may make the java file jsp compiled into gibberish

    ContentType: setting response header; ContentType and the pageEncoding generally designated one page code it; if not set, the default ISO

    import: the leader packet, and a plurality of instruction may be provided import attributes, other attributes not

    errorPage: If the current page of the abnormality, which will be forwarded to a page, and the property decision

    isErrorPage: Specifies whether the page is a page handling exceptions, the status code page 500; when the attribute is true, the page can use the built-in objects nine exception object, this is not the case can not use the object.

  

    

Guess you like

Origin www.cnblogs.com/ibcdwx/p/12317071.html