📄 release-notes-1.1-b1.html
字号:
APIs. Parser known to work include the JAXP/1.1 reference implementation,
and Xerces 1.3.1.</p>
<p>
<strong>CONTRIB Directory</strong>:
A new directory (<code>contrib</code>) in the CVS source repository has
been added to accumulate Struts add-on extensions that are generally
useful but have not yet been integrated into the standard code base.</p>
<ul>
<li>ValidatorForm - Client and Server-side validation library.</li>
<li>Tiles - Advanced templating library (see Struts-Tiles.war).</li>
<li>Service Manager - Add custom services without subclassing controller.</li>
</ul>
<p>
<strong>UNIT TESTING SUPPORT</strong>: Support for running unit tests
on Struts components and custom tags is being added, utilizing the
<a href="http://jakarta.apache.org/cactus/">Jakarta Cactus</a> product.</p>
<p>The following new features have been added to the basic controller
framework (package <code>org.apache.struts.action</code>):</p>
<ul>
<li>The new <code>ActionMessages</code> class will support a superset of
the capabilities of <code>ActionErrors</code>, and will be useful as
a collection of general purpose messages, not just errors.</li>
</ul>
<p>The following new features have been added to the utility classes
(package <code>org.apache.struts.util</code>):</p>
<ul>
<li>LocalStrings: Correct message regarding replaceable parameter so that it does not append an extraneous character.</li>
<li>Add LabelValueBean class. This defines a collection of name/value pairs that can be used with the <html:options> tag, and elsewhere.</li>
<li>MessageResources: Escape any single quote characters that are included in the specified message string.</li>
<li>Allow a transaction token to be the only parameter in computeParameters().</li>
<li>Change RequestUtils to encode ampersands when building a query string.</li>
</ul>
<p>The following new features have been added to the
<em>struts-bean</em> custom tag library (package
<code>org.apache.struts.taglib.bean</code>):</p>
<ul>
<li>Add format, locale and bundle attributes to bean:write to support values formatting according to current
user locale, format string from attribute or format string from string resources.</li>
<li>Correct the generated scripting variable type when the <bean:cookie>, <bean:header>, or <bean:parameter> tag is used with the "multiple" attribute.</li>
<li>Added <code>name</code>, <code>property</code>, and
<code>scope</code> attributes to the <code><bean:message></code>
tag, so that the message source key can be obtained dynamically from
a bean or bean property.</li>
</ul>
<p>The following new features have been added to the
<em>struts-html</em> custom tag library (package
<code>org.apache.struts.taglib.html</code>):</p>
<ul>
<li>On the Options tag, if the property specified by the "property" attribute returns null, it now throws an error message that indicates what the real problem is, rather than causing an NPE.</li>
<li>Added 'style' and 'styleClass' attributes for <html:option> and <html:options> tags.</li>
<li>Added 'name', 'property' and 'scope' attributes to
<code><bean:message></code> so that
the message resource key can be obtained dynamically from a bean.</li>
<li>Added a new <code><html:messages></code> tag to iterate through
a message collection in the new <code>ActionMessages</code> class.</li>
<li>
<code>ActionForm</code> will now call <code>reset()</code> if it
instantiates the ActionForm bean.</li>
<li>Added indexed property to the SubmitTag, SelectTag, LinkTag.java, CheckboxTag, ButtonTag, ImageTag, RadioTag, and TextArea.Tag.</li>
</ul>
<p>The following new features have been added to the
<em>struts-logic</em> custom tag library (package
<code>org.apache.struts.taglib.logic</code>):</p>
<ul>
<li>Added <code><logic:empty></code> and
<code><logic:notEmpty></code> tags, which are similar to
<code><logic:present></code> and
<code><logic:notPresent></code> except for the treatment of
empty strings.</li>
</ul>
<p>The following new features have been added to the
<em>struts-template</em> custom tag library (package
<code>org.apache.struts.taglib.template</code>):</p>
<ul>
<li>None.</li>
</ul>
<p>The following new features have been added to the Struts Documentation
application (and corresponding contents on the Struts web site):</p>
<ul>
<li>Move Tag Library documentation into User's Guide.</li>
<li>Added Kickstart FAQ.</li>
<li>Added Reference copy of 1.0 JavaDoc.</li>
<li>Revised the example page in the User's Guide (Building View Components) to reflect current practice.</li>
<li>Revised installation instructions for SilverStream and Resin.</li>
</ul>
</div>
<h2 id="Changes">Changes and Bug Fixes</h2>
<div class="indent">
<p>The following changes and bug fixes have occurred in the configuration
files related to Struts:</p>
<ul>
<li>Remove deprecated support for the old (Struts 0.5) configuration file
format.</li>
</ul>
<p>The following changes and bug fixes have occurred in the basic
controller framework (package <code>org.apache.struts.action</code>):</p>
<ul>
<li>Add InvokeAction and CreateActionForm methods to allow direct chaining of Actions.</li>
<li>Add ContextHelper to expose framework elements to alternate presentation layers.</li>
<li>ActionForms and related classes now use a StringBuffer when responding a toString request in order to conserve resources.</li>
<li>Add standard LookupDispatchAction to help select between internationalized buttons.</li>
<li>Modify ActionForm class to use ActionServletWrapper rather than expose ActionServlet.</li>
<li>Add ActionServletWrapper class. Used by ActionForm to prevent the Public String properties of ActionServlet from being changed via a query string.</li>
<li>Unconditionally pass the selected mapping as a request attribute under key Action.MAPPING_KEY, even if no form bean is specified.</li>
<li>Avoid a NullPointerException in corner cases caused by failed initialization of ActionServlet.</li>
<li>The <code>ActionForm</code> class is now truly serializable, because
the two non-serializable instance variables (servlet and
multipartRequestHandler) have been made transient. However, if you
actually do serialize and deserialize such instances, it is your
responsibility to reset these two properties.</li>
<li>Removed deprecated Struts 0.5 methods, and support for the Struts 0.5
configuration file format.</li>
<li>The initial order a property/key is added in is now maintained by ActionMessages class.</li>
</ul>
<p>The following changes and bug fixes have occurred in the file upload
package (package <code>org.apache.struts.upload</code>):</p>
<ul>
<li>Correct MultiboxTagdoAfterBody() to return SKIP_BODY instead of SKIP_PAGE.</li>
<li>Fixed lost byte problem in BufferedMultipartInputStream</li>
<li>Fixed ArrayIndexOutOfBoundsException situations</li>
<li>Better reporting for premature closing of input streams while reading
multipart requests.</li>
<li>Additional fix for file corruption problem with uploads and new line characters.</li>
</ul>
<p>The following changes and bug fixes have occurred in the utilities
(package <code>org.apache.struts.util</code>):</p>
<ul>
<li>Modify RequestUtils class to use ActionServletWrapper rather than expose ActionServlet.</li>
<li>Added error message for the getActionErrors and getActionMessages method.</li>
<li>Added a getActionErrors and getActionMessages methods to generate the correct corresponding object based on the object retrieved from request scope based on the key passed in.</li>
<li>The logic for creating an ActionErrors or ActionMessages object has been moved to a utility method in RequestUtils. The JspException message is also generated in RequestUtils.</li>
<li>
<code>ConvertUtils.convertCharacter()</code> will now detect empty strings and return the default value.</li>
</ul>
<p>The following changes and bug fixes have occurred in the
<em>struts-bean</em> custom tag library (package
<code>org.apache.struts.taglib.bean</code>):</p>
<ul>
<li>The <code><html:errors></code> when the property tag is
specified, errors are no longer printed if the specified property
has no errors. Previously errors were always printed ! Future
enhancements would include additional attributes to always turn
off the header or footer. </li>
<li>Made the remaining helper methods "protected" rather than
"private".</li>
</ul>
<p>The following changes and bug fixes have occurred in the
<em>struts-html</em> custom tag library (package
<code>org.apache.struts.taglib.html</code>):</p>
<ul>
<li>Fixed FormTag to exclude query string when identifying action mapping name.</li>
<li>Added the 'align' attribute to the <html:image> tag.</li>
<li>Added indexed attribute to ImageTag, RadioTag, and TextAreaTag.</li>
<li>Added MessagesTag.</li>
<li>Correctly URLEncode the query string parameter value on ImgTag, even if there is only a single parameter.</li>
</ul>
<p>The following changes and bug fixes have occurred in the
<em>struts-logic</em> custom tag library (package
<code>org.apache.struts.taglib.logic</code>):</p>
<ul>
<li>None.</li>
</ul>
<p>The following changes and bug fixes to the Struts Documentation
application (and corresponding contents on the Struts web site) have
occurred:</p>
<ul>
<li>In the HTML tag documentation, expand to cover using indexed properties with iterate.</li>
<li>Add installation notes for Jetty.</li>
<li>In the Tag Developers Guide, add more detail regarding file upload requirements.</li>
<li>In the Introduction, added references to basic background material.</li>
<li>In Building View Components, clarify that additional i18n support may be provided by the browser, and is outside the scope of the framework.</li>
<li>In Building Controller Components, document 'validating' init-param, add defaults for various parameters, clarify that some web.xml settings are not Struts-specific.</li>
<li>Reorganized to separate 1.0 material from nightly build material.</li>
<li>Expanded Resources section.</li>
<li>Various updates regarding other release notes.</li>
</ul>
<p>The following changes and bug fixes to the Struts Example Application
have occurred:</p>
<ul>
<li>Add Russian and Japanese translations of the application resources and set the character set for the example JSP pages to "UTF-8" so that it can display either English or Japanese.</li>
<li>Exchange "name" for "attribute" properties for Edit mappings in Struts configuration file.</li>
<li>Remove references to saving database data from "tour" document, since this functionality was removed.</li>
</ul>
<p>The following changes and bug fixes to the Struts Template Example
Application have occurred:</p>
<ul>
<li>None.</li>
</ul>
<p>The following changes and bug fixes to the Struts Exercise Taglib Example
Application have occurred:</p>
<ul>
<li>Added test case for <html:select> using <html:options> based on a collection
saved in the page context.</li>
</ul>
<p>
Next: <a href="installation.html">Installation</a>
</p>
</div>
</div>
<!--end main-->
</div>
<!--end content-->
<div id="footer">
<img id="powered-logo" alt="Powered by Struts" src="../images/struts-power.gif" />
Copyright (c) 2000-2005, The Apache Software Foundation <span class="noprint">-
<a href="http://wiki.apache.org/struts/StrutsDocComments">Comments?</a>
</span>
</div>
<!--end footer-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -