时间: 2021-07-31 作者:daque
2、发端此刻让咱们渐渐深刻的领会xml在jsp中的运用吧. 开始须要设置tld文献和相映tag处置的java类文献.而后在jsp经过设置的语法运用tag, 让咱们来看看底下这个xml文献。==================taglib.tld===========================public "-//sun microsystems, inc.//dtd jsp tag library 1.1//en""http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">1.01.1java pet store demo custom tagsinsertcom.sun.estore.taglib.inserttagjspan insertion tagidfalsetruetemplatetruetrueparametertruetruecreatetemplatecom.sun.estore.taglib.createtemplatetagjsp create a template object and store in the request with the specified nameidfalsetruetemplatetruetrue screentruetrue screencom.sun.estore.taglib.templatescreentagjspa template screen objectscreentruetrueparametercom.sun.estore.taglib.templateparametertagjspa template parameter objectparametertruetruevaluetruetruedirecttruetrue===========================================================这是j2ee blueprints 里供给的sample------pet store内里的一个tld文献。下面临tld文献举行证明taglib descriptor