⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 release-notes-1.2.7.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Struts Release Notes (since 1.2.4)</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="../struts.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="heading">
<a href="http://apache.org/">
<img id="asf_logo_wide" alt="The Apache Project" src="../images/asf_logo_wide.gif" />
</a>
<a href="http://struts.apache.org/">
<img id="struts-logo" alt="Struts Framework" src="../images/struts.gif" />
</a>
</div>
<!--end heading-->
<div id="content">
<div id="menu">

    
    
    <p>User Guide</p>
<ul>
      <li>
<a href="index.html">Table of Contents</a>
</li>
      <li>
<a href="preface.html">Preface</a>
</li>
      <li>
<a href="introduction.html">Introduction</a>
</li>
      <li>
<a href="building_model.html">Model Components</a>
</li>
      <li>
<a href="building_view.html">View Components</a>
</li>
      <li>
<a href="building_controller.html">Controller Components</a>
</li>
      <li>
<a href="configuration.html">Configuration</a>
</li>
      <li>
<a href="release-notes.html">Release Notes</a>
</li>
      <li>
<a href="installation.html">Installation</a>
</li>
    </ul>

    <p>Developer Guides</p>
<ul>
        <li>
<a href="dev_bean.html">Bean Tags</a>
</li>
        <li>
<a href="dev_html.html">HTML Tags</a>
</li>
        <li>
<a href="dev_logic.html">Logic Tags</a>
</li>
        <li>
<a href="dev_nested.html">Nested Tags</a>
</li>
        <li>
<a href="dev_tiles.html">Tiles Tags</a>
</li>
        <li>
<a href="dev_util.html">Utilities</a>
</li>
        <li>
<a href="dev_validator.html">Validator</a>
</li>
    </ul>

    <p>Quick Links</p>
<ul>
        <li>
<a href="../index.html">Welcome</a>
</li>
        <li>
<a href="index.html">User and Developer Guides *</a>
</li>
        <li>
<a href="../faqs/index.html">FAQs and HowTos</a>
</li>
    </ul>

</div>
<!--end menu-->
<div id="main">
 <h1 id="release_notes">6.1 Release Notes - Version 1.2.7</h1>
<h2 id="Introduction">Introduction</h2>
<div class="indent">
          <p>
              This section contains release notes for changes that have taken
              place since
              <a href="release-notes-1.2.4.html">Version 1.2.4</a>.
              To keep up-to-date on all changes to Struts, subscribe to the
              dev@ list.
          </p>
          <p>
              <b>Notes on upgrading</b> are maintained in the
              <a href="http://wiki.apache.org/struts/StrutsUpgrade">Wiki Upgrade pages</a>.
              The wiki is a community maintained resource - please feel free to add your
              input so that everyone can benefit from the collective experience.
          </p>
          <p>
             For the version requirements of each library, see the 
             <a href="installation.html">Installation chapter</a>.
          </p>
 
      </div>
<h2 id="Highlight">Highlights of Changes</h2>
<div class="indent">
          <p>
              The purpose of this section is to highlight the new features since the
              Version 1.2.4 release. For detailed information concerning changes 
              see the <a href="#Detail">Detailed Changes</a> section.
          </p>
          <h3>Dependencies</h3>
          <p>
              Struts has changed its dependencies on the following software components:
          </p>
              <ul>
                   <li>Commons BeanUtils dependency changed to Version 1.7.0</li>
                   <li>Commons Digester dependency changed to Version 1.6</li>
                   <li>Commons Validator dependency changed to Version 1.1.4</li>
                   <li>Dependency on Commons Collections has been removed</li>
                   <li>Dependency on Commons Lang has been removed</li>
              </ul>

          <h3>Core Struts</h3>
          <h4>Saving Messages in the Session</h4>
          <p>
              A new method to store <i>errors</i> in the Session [<code>saveErrors(HttpSession, ActionMessages)</code>]
              has been added to <i>Action</i> along with the automatic removal of these errors once they have been
              accessed. This is equivalent to the facility for <i>messages</i> that was included in the Version 1.2.4
              release.
          </p>

          <h4>Re-directing ActionForward</h4>
          <p>
              <i>ActionRedirect</i> is a subclass of ActionForward which is designed for use in redirecting requests, 
                            with support for adding parameters at runtime. See the <i>javadoc</i> for more details.
          </p>

          <h4>Download Action</h4>
          <p>
              <i>DownloadAction</i> is an abstract action that provides the nuts and bolts for downloading 
              files. See the <i>javadocs</i> and <a href="http://wiki.apache.org/struts/StrutsFileDownload">Wiki</a>
              for further information.
          </p>

          <h4>Dispatch Helper</h4>
          <p>
              <i>ActionDispatcher</i> is a helper class for providing <i>DispatchAction</i> type behaviour
              without having to inherit from <i>DispatchAction</i>. See the <i>javadoc</i> for more details.
          </p>

          <h4>
<i>Lazy</i> Validator Form</h4>
          <p>
              A <i>DynaBean</i> flavour ActionForm which doesn't need its properties to be
              defined and provides <i>Lazy List</i> and <i>Lazy Map</i> behaviours.
          </p>
          <h4> Config Files in jars</h4>
          <p>
              Config files (i.e. Struts config, Validator config and Tiles config files) can now be stored in jars.
              Struts checks the servlet context, as before but if not found Struts now tries the classloader to try
              and get them.
          </p>
          <h3>Tag Library Changes</h3>
          <h4>Highlighting Errors</h4>
          <p>
              Struts can now automatically highlight error fields using the new <i>errorKey</i>,
              <i>errorStyle</i>, <i>errorStyleClass</i> and <i>errorStyleId</i> attributes on the HTML
              Input Tags. See the <a href="struts-html.html">User Guide</a> for details of these attributes.
          </p>
          <h4>Readonly / Disabled Forms</h4>
          <p>
              It is now possible to either <i>disable</i> or make <i>read only</i> all fields for a form
              using the new <i>readonly</i> and <i>disabled</i> attributes on the &lt;html:form&gt; tag.
              <b>N.B.</b>The <i>readonly</i> attribute only affects  &lt;html:text&gt;, &lt;html:textarea&gt;
              and &lt;html:password&gt; as per the HTML 4 specification.
              See the <a href="struts-html.html#form">User Guide</a> for details of these attributes.
          </p>

          <h4>HTML Tag Refactoring</h4>
          <p>
              Many of the <i>HTML</i> tags have been refactored to make them easier to extend.
          </p>
             <ul>
<li>A <b>prepareOtherAttributes()</b> method was added - called just before the closing
                     tag element, it provides a place to render additional attributes.</li>
                 <li>The <i>name</i> attribute rendering is now in a <b>prepareName()</b> method to make it
                     easier to provide custom behaviour.</li>
                 <li>The <i>value</i> attribute rendering is now in a <b>prepareValue()</b> method to make it
                     easier to provide custom behaviour.</li>
                 <li>When rendering an attribute, these tags now use the <i>getter</i> for the property rather than the
                     actual property - that means that if you wanted, for example to override the TextTag's <i>styleClass</i>
                     then one option is to override the getStyleClass() method.</li>
                 <li>Rendering of attributes now uses a simple <b>prepareAttribute()</b> method to generate the 
                     <i>name="attribute"</i> format, making most attribute rendering a one line statement.</li>
             </ul>
          <h4>Bundle Attribute</h4>
          <p>
              The <i>bundle</i> attribute has been added to the following <i>HTML</i> tags:
              ButtonTag, CancelTag, CheckboxTag, FileTag, FrameTag, HiddenTag, LinkTag, MultiboxTag,
              PasswordTag, RadioTag, ResetTag, SelectTag, SubmitTag, TextTag, TextareaTag.
              See the <a href="struts-html.html">User Guide</a> for details of the bundle attribute
              for these tags.
          </p>
          <h4>ErrorTag</h4>
          <p>
              Now has <b>header</b>, <b>footer</b>, <b>prefix</b>, <b>suffix</b> attributes.
              See the <a href="struts-html.html#errors">User Guide</a> for details of these attributes.
          </p>

          <h3>Validator</h3>
          <h4>Resource Bundle Support</h4>
          <p>
              The <i>bundle</i> attribute for the &lt;msg&gt; and &lt;arg&gt; elements in the Validator
              configuration file (e.g. <i>validation.xml</i>) are now supported along with the <i>resource</i>
              attribute on the &lt;msg&gt; element.
          </p>
          <p>
              New pages have been added to the <i>struts-examples</i> webapp showing the new 
              <i>Resource Bundle Support</i> and a page for <i>validwhen</i> examples.
          </p>

          <h3>Subversion</h3>
          <p>
              Struts has migrated it's source repository from CVS to Subversion, following which the
              repository has been refactored into subprojects. The subproject re-factoring does not
              however affect the 1.2.x series which is released from the
              <a href="http://svn.apache.org/viewcvs.cgi/struts/core/branches/STRUTS_1_2_BRANCH/">STRUTS_1_2</a> branch.
          </p>
          <h3>People</h3>
          <p>
              On the <a href="../volunteers.html">people</a> front, in addition to <i>Martin Cooper</i>  being 
              appointed the <a href="../announce.html#a20050331">new PMC chair</a>, one new committer, 
              <i>Hubert Rabago</i>, accepted an invitation to join us, and we welcome back <i>David Geary</i> 
              from emeritus to active status.
          </p>
          
      </div>
<h2 id="Detail">Detailed Changes</h2>
<div class="indent">
          <p>
              This section contains the details of changes since version 1.2.4 with links to
              bugzilla tickets and Subversion Revision details. It is split into the following
              sub-sections.
          </p>
          <ul>
              <li>
<a href="#STRUTS_1_2_7">Version 1.2.7 Changes</a>
</li>
              <li>
<a href="#STRUTS_1_2_6">Version 1.2.6 Changes</a>
</li>
              <li>
<a href="#STRUTS_1_2_5">Version 1.2.5 Changes</a>
</li>
          </ul>
  
      <h3 id="STRUTS_1_2_7">Version 1.2.7</h3>

          <p>
              After <a href="http://svn.apache.org/viewcvs.cgi/struts/core/tags/STRUTS_1_2_6/">Version 1.2.6 was tagged</a>
              the <a href="http://svn.apache.org/viewcvs.cgi/struts/core/branches/STRUTS_1_2_BRANCH/">1.2 Branch</a>
              was created and work started on the next version (<i>1.3.x series</i>). Work has continued on
              both versions and <i>Revision</i> numbers shown in brackets are where a change has been ported
              from the current development version into the <i>1.2 Branch</i>.
          </p>

         <table>
             <thead>
<tr>
                 <th>Modification</th>
<th>Revision</th>
<th>Bugzilla</th>
<th>Description</th>
             </tr>
</thead>
             <tr>
                 <td align="center">2005-05-05</td>
                 <td align="center">
<a href="http://svn.apache.org/viewcvs?rev=168223&amp;view=rev">168223</a>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -