JavaWeb-include instructions and taglib

A command .include

 1. forward with requests include () is similar, but somewhat different;

    (1) <% include ...%> JSP page is compiled into a java file finishes, such as a.jsp included b.jsp, in the absence compiled java files, first merge into a single file and then compiled into java jsp file , then the class file

    (2) a request forwarded include () after completion of the operation when a page generating class files Servlet; two jsp file, generates two class files, the content of the response merged at runtime; however say fine point, comprising internal documents call include () dynamically included file contains

 

Two .taglib instruction

  1. The common attributes:

    (1) prefix: prefix specified tag library introduced, designated by us, a page tag is used to distinguish the case where a plurality of tag libraries of the same name appears, such a prefix is ​​c, then <c: text>

    (2) uri: location tag library

Guess you like

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