欢迎光临
我们一直在努力

About Struts—(五)-JSP教程,面向对象/设计

建站超值云服务器,限时71元/月

 

3.3.3 other useful presentation tags
还有一些用来创建view的tags,请参见它们的文档。
·   [logic] iterate repeats its tag body once for each element of a specified collection (which can be an enumeration, a hashtable, a vector, or an array of objects).
·   [logic] present depending on which attribute is specified, this tag checks the current request, and evaluates the nested body content of this tag only if the specified value is present. only one of the attributes may be used in one occurrence of this tag, unless you use the property attribute, in which case the name attribute is also required. the attributes include cookie, header, name, parameter, property, role, scope, and user.
·   [logic] notpresent the companion tag to present, notpresent provides the same functionality when the specified attribute is not present.
·   [html] link generates a html <a> element as an anchor definition or a hyperlink to the specified url, and automatically applies url encoding to maintain session state in the absence of cookie support.
·   [html] img generates a html <img> element with the ability to dynamically modify the urls specified by the "src" and "lowsrc" attributes in the same manner that <html:link> can.
·   [bean] parameter retrieves the value of the specified request parameter, and defines the result as a page scope attribute of type string or string[].
赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » About Struts—(五)-JSP教程,面向对象/设计
分享到: 更多 (0)

相关推荐

  • 暂无文章