正在加载图片...
第17章自定义标签 Fragment属性 自定义标签接受一整段的程序片段作为参数内容。如果要设定这种类型的参数, 必须将 attribute指令的属性值设为true % @attribute name-attribute Name fragment="true"%0> >在JSP网页当中,将一整段的程序片段当作参数传入,属性必须使用< jsp: attribute> 标签作设定。 <mtag: frgmenttag <jsp attribute name="attributeName </jsp: attribute </mtag: fragattributes> JSP动态网页新技术 6第17章自定义标签 JSP 动态网页新技术 6 Fragment属性 ➢ 自定义标签接受一整段的程序片段作为参数内容。如果要设定这种类型的参数, 必须将attribute指令的属性值设为true 。 <%@attribute name=attributeName fragment="true" %> ➢ 在JSP网页当中,将一整段的程序片段当作参数传入,属性必须使用<jsp:attribute> 标签作设定 。 <mytag:frgmenttag > <jsp:attribute name="attributeName" > … </jsp:attribute> </mytag:fragattributes> – <jsp:attribute>指定name属性为所要传入的的参数名称 。 – <jsp:attribute>标签当中,填入的则是要传入自定义标签的内容
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有