`
文章列表
optgroupTag.jsp   <s:select label="My Selection" name="mySelection" value="%{'POPEYE'}"    list="%{#{'SUPERMAN':'Superman', 'SPIDERMAN':'spiderman'}}">    <s:optgroup label="Adult" list="%{#{'SOUTH_PARK':'South Park'}}" />    & ...
hiddenTag.jsp   <s:form action="hiddenTag">          <s:hidden name="hidden_key" value="ID"></s:hidden>      <s:property value="#request.numbers"/>   <s:submit></s:submit>  </s:form>   struts.xml   <action name ...
dateTag.jsp     <%@ page language="java" pageEncoding="UTF-8"%> <%@ taglib uri="/struts-tags" prefix="s" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>    <title>主题</title& ...
combobox.jsp   <s:form>   <s:bean name="com.butone.struts2.bean.XmxxBean" id="year">    <s:param name="XMBH" value="text('firstBirthYear')" />    <s:param name="XMMC" value="'2000'" />     <s:combobox label=&quo ...
beanTag.jsp   <s:form action="beanTag" method="post" theme="simple">      <s:bean name="com.butone.struts2.bean.XmxxBean"  id="number">       <s:param name="XMXXID">      ${10-3}     </s:param>      <!-- 只能set一个值 ...
append标签用于将多个集合对象拼接起来,组成一个新的集合,通过这种拼接,从而允许通过一个<s:iterator../>标签就完成多个集合的迭代.   appendTag.jsp   <s:append id="list">    <s:param value="#request.list1"/>    <s:param value="#request.list2"/>    <s:param value="#request.list3"/>    ...
actionTag.jsp     <s:action name="actionTag" executeResult="false">//这里好像必须为false,我把它改为true,就会出现死循环的   ${values}     struts.xml   <action name="actionTag" class="com.butone.struts2.taguse.ActionTag">     <result name="actionTag&qu ...
<!-- 全局跳转 -->  <global-results>   <result name="error">/error.jsp</result>  </global-results>   <!-- 定义全局异常跳传 -->  <global-exception-mappings >   <exception-mapping name="error" result="error" exception="java.lang.Excep ...
tokenTag.jsp   <s:form action="tokenTag" method="post">    <s:textfield name="xmxxBean.XMXXID" />     <s:token />    <s:submit />   </s:form>   struts.xml   <action name="tokenTag" class="com.butone.struts2.taguser.To ...
上传单个文件   fileTag.jsp   <s:form action="uploadaction" method="post" enctype="multipart/form-data" >   <s:file label="上传" theme="simple" name="upload"/>   <s:submit value="上传"/></s:form>   struts.xml   ...
取值存值标签   setTag.jsp   <s:form>    <s:set name="values" value="#{'a':'足球','2':'蓝球','b':'排球','4':'网球','5':'乒乓球','10':'爬山'}"/>    <s:checkboxlist list="values" name="checkboxlist" value="{'a','2'}"></s:checkboxlist></s:form ...
注意:被放置在值栈栈顶的值可能是一个字符串类型也可能是一个 Java 对象实例。  PushTagAction.java    HttpServletRequest request = ServletActionContext.getRequest();          request.setAttribute("list_values", new XmxxBean(2,"XMBH002","OA"));          return "pushTag";    struts.xml   & ...
经过多次调试,终于将<s:include>这个标签调试出来了, a.jsp <s:form theme="simple">        <s:url id="target" value="你要传的值(action)" />                <s:include value="validate.jsp"/>               <!--我看到网上有很多人都这么写的,是不对的-->        <!--  ...
Global site tag (gtag.js) - Google Analytics