Ifelseif else描述:执行基本的条"> Ifelseif else描述:执行基本的条" />
欢迎来到天天文库
浏览记录
ID:18978726
大小:313.00 KB
页数:55页
时间:2018-09-27
《struts2标签x详细说明》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、struts2标签详解要在jsp中使用Struts2的标志,先要指明标志的引入。通过jsp的代码的顶部加入以下的代码:<%@taglibprefix="s"uri="/struts-tags"%>Ifelseif else描述:执行基本的条件流转。参数: 名称必需默认类型描述备注test是 boolean 决定标志里的内容是否显示的表达式else标志没有这个参数id否 Object/String用来标识元素的id。在UI和表单中为HTML的id属性 例子:2、/>60}">老年人35}">中年人forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofw3、hetherviewsareclear;(D)theborrower,guarantorloans15}"id="wawa">青年人少年"/><%System.out.println(request.getParameter("name"));%>4、haosoft'">zhaosoftherezxlhereotherishere Iterator(迭代)描述:用于遍历集合(java.util.Collection)或枚举值(java.util.iterator)参数forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopieso5、fchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)theborrower,guarantorloans 名称必需默认类型描述status 否 String如果设置此参数,一个IteratorStatus的实例将会压入每一个遍历的堆栈value 否 Object/String 要遍历的可枚举的(iteratable)数6、据源,或者将放入的新列表(List)的对想id 否 Object/String 用来标识元素的id。在ui和表单中为HTML的id属性 I18n(国际化操作)描述:加载资源包到值堆栈。它可以允许text标志访问任何资源包的信息。而不只当前的action相关联的资源包。 名称必需默认类型描述name 是 Object/String 资源包的类路径(如com.xxxx.resources.AppMsg)id 否 Object/String 用来标识元素的id。在ui和表单中为HTML的id属性Include描述7、:包含一个servlet的输出(servlet或jsp的页面) 名称必需默认类型描述value时 Stringforthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear8、;(D)theborrower,guarantorloans要包含的jsp页面或servletid否 Object/String用来标识元素的id。在ui和表单中为HTML的id属性 param 描述:属性是可选的,如果提供,会调用Component的方法,addParameter(String,Object),如果不提供,则外层嵌套标签必须实现UnnamedParametric接口。
2、/>60}">老年人35}">中年人forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofw
3、hetherviewsareclear;(D)theborrower,guarantorloans15}"id="wawa">青年人少年"/><%System.out.println(request.getParameter("name"));%>4、haosoft'">zhaosoftherezxlhereotherishere Iterator(迭代)描述:用于遍历集合(java.util.Collection)或枚举值(java.util.iterator)参数forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopieso5、fchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)theborrower,guarantorloans 名称必需默认类型描述status 否 String如果设置此参数,一个IteratorStatus的实例将会压入每一个遍历的堆栈value 否 Object/String 要遍历的可枚举的(iteratable)数6、据源,或者将放入的新列表(List)的对想id 否 Object/String 用来标识元素的id。在ui和表单中为HTML的id属性 I18n(国际化操作)描述:加载资源包到值堆栈。它可以允许text标志访问任何资源包的信息。而不只当前的action相关联的资源包。 名称必需默认类型描述name 是 Object/String 资源包的类路径(如com.xxxx.resources.AppMsg)id 否 Object/String 用来标识元素的id。在ui和表单中为HTML的id属性Include描述7、:包含一个servlet的输出(servlet或jsp的页面) 名称必需默认类型描述value时 Stringforthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear8、;(D)theborrower,guarantorloans要包含的jsp页面或servletid否 Object/String用来标识元素的id。在ui和表单中为HTML的id属性 param 描述:属性是可选的,如果提供,会调用Component的方法,addParameter(String,Object),如果不提供,则外层嵌套标签必须实现UnnamedParametric接口。
4、haosoft'">zhaosoftherezxlhereotherishere Iterator(迭代)描述:用于遍历集合(java.util.Collection)或枚举值(java.util.iterator)参数forthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopieso
5、fchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear;(D)theborrower,guarantorloans 名称必需默认类型描述status 否 String如果设置此参数,一个IteratorStatus的实例将会压入每一个遍历的堆栈value 否 Object/String 要遍历的可枚举的(iteratable)数
6、据源,或者将放入的新列表(List)的对想id 否 Object/String 用来标识元素的id。在ui和表单中为HTML的id属性 I18n(国际化操作)描述:加载资源包到值堆栈。它可以允许text标志访问任何资源包的信息。而不只当前的action相关联的资源包。 名称必需默认类型描述name 是 Object/String 资源包的类路径(如com.xxxx.resources.AppMsg)id 否 Object/String 用来标识元素的id。在ui和表单中为HTML的id属性Include描述
7、:包含一个servlet的输出(servlet或jsp的页面) 名称必需默认类型描述value时 Stringforthequalityofreviewsandreview.Article26threview(a)theCCRAcompliance,whethercopiesofchecks;(B)whetherdoubleinvestigation;(C)submissionofprogramcompliance,investigationorexaminationofwhetherviewsareclear
8、;(D)theborrower,guarantorloans要包含的jsp页面或servletid否 Object/String用来标识元素的id。在ui和表单中为HTML的id属性 param 描述:属性是可选的,如果提供,会调用Component的方法,addParameter(String,Object),如果不提供,则外层嵌套标签必须实现UnnamedParametric接口。
此文档下载收益归作者所有