Following are highlights of the new features. In the next section, we
provide links to the JavaDocs for the affected classes.
以下は、新機能のハイライトです。次の章では、影響を受けたクラスのJavaDocsへのリンクを提供します。
New Configuration DTD
新しいコンフィグレーション DTD
The Struts Configuration 1.0 DTD has been deprecated in favor of the
struts-config_1_1.dtd.
In the Struts 1.1 release, existing Struts configuration files can be
loaded using either DTD version.
Strutsコンフィグレーション 1.0 DTDは、struts-config_1_1.dtd.を支持し、大いに非難されました。Struts1.1リリースでは、Sturtsコンフィグレーションファイルは、どちらか一方のDTDバージョンをロードして利用する事が可能です。
New Dependencies on Commons packages
Commons パッケージ内の新たな依存
Several components of Struts 1.0 have been found to be useful in
general Java development (and not just useful for building Struts-based
web applications), and have been migrated into the
Jakarta Commons Project.
As a result, the current development version of Struts has been modified
to rely on the Commons packages containing these classes, rather than the
Struts internal versions. In nearly every case, this involved changing
only the import statements at the top of your classes. Any
applications that utilize these classes will need to be modified in the
same way.
Struts 1.0 のいくつかのコンポーネントは、一般のJavaデベロッパー
(StrutsベースのWebアプリケーションの役に立つだけではなくて)の役にたつことがわかりました。 そのため、Jakarta Commons Projectに移動しました。 結果として、現在バージョンのStruts の開発は、Struts の内のバージョンよりも、 これらのクラスを含む Commonパッケージを適用するように修正されましたq。 ほとんどすべてのケースで、クラスのトップの import文のだけの変更を必要としました。 これらのクラスを使っているどのアプリケーションでも、同様な方法で修正する必要があります。
The following Commons packages contain the replacements for the
corresponding Struts 1.0 classes:
次の Commonsパッケージは、対応する Struts 1.0クラスで変換するものを含んでいます。
- BeanUtils Package
[
org.apache.commons.beanutils] -
org.apache.struts.utils.BeanUtils,
org.apache.struts.utils.ConvertUtils, and
org.apache.struts.utils.PropertyUtils.
- Collections Package
[
org.apache.commons.collections] -
org.apache.struts.util.ArrayStack,
org.apache.struts.util.FastArrayList,
org.apache.struts.util.FastHashMap,
org.apache.struts.util.FastTreeMap.
- Digester Package -
[
org.apache.commons.digester] -
org.apache.struts.digester.*.
The following Commons packages are also now used by various components
of the Struts framework:
下記のCommonsパッケージは、Strutsフレームワークの様々なコンポーネントによって現在利用されています:
NOTE! XML Parser Prerequisite Updated
Struts now depends on an XML parser that conforms to the JAXP/1.1
(rather than JAXP/1.0) APIs. Parsers known to work include the JAXP/1.1
reference implementation, and Xerces 1.3.1.
ノート! XML パーザ必要条件のアップデート
Strutsは現在、JAXP/1.1(JAXP/1.0よりも) に従う XMLパーサに依存します。 既知の動作パーサーは、JAXP/1.1リファレンス実装や、Xerces 1.3.1 です。
SOURCE DEVELOPERS NOTE! Ant Prerequisite Updated
To build Struts from source Ant 1.4 or later is now required. This
does not affect developers that use Struts from the binary distribution.
ソース開発者ノート! Ant 必要条件のアップデート
ソースからStrutsをビルドするには、Ant 1.4または最新版が現在必要です。
バイナリディストリビューションからStrutsを利用する開発者には影響しません。
Struts Validator Integration
The new Commons-Validator is now integrated with Struts and exposed
through the new Validator package.
Struts Validator の統合
新しいCommons-ValidatorはStrutsに統合され、新しいValidatorパッケージとして公開されました
Tiles - An advanced templating taglib
The Tiles JSP assembly framework has been integrated with Struts.
Tiles - 先進的テンプレーティング タグライブラリ
Tiles JSP 組立フレームワークは、Strutsに統合されました
Nested - An very cool taglib extension
The Nested taglib is bundled with Struts and enhances the functionality
of the existing Struts tags.
Nested - とてもクールな拡張タグライブラリ
Nestedタグライブラリは、Strutsにバンドルされ、既存のStrutsタグの機能性を増強します
New Example Applications
New example applications for the Validator and Tiles are now part
of the Struts distribution.
新しいサンプルアプリケーション
ValidatorとTilesのための新しいサンプルアプリケーションは、
Sturtsディストリビューションの一部として配布されています
New Contrib directory for optional components
A new directory (contrib) 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.
オプショナルコンポーネントのための新しいContribディレクトリ
CVSソースリポジトリ内の新しいディレクトリ(contrib)は、
一般的に有用ではあるが、まだ標準のコードベースへ統合されていないStrutsアドオン拡張を蓄積するために追加されました。
- Scaffold - An extension of the Commons Scaffold toolkit of reusable
classes for building web applications.
- Struts-el - The optional Struts-el taglib makes it easy to use Struts
with JSTL (container with servlet 2.3 support required).
- Scaffold - Webアプリケーションを構築するための再利用可能なクラスのCommons Scaffoldツールキットの拡張
- Struts-el -
オプションのStruts-elタグライブラリは、JSTLをStrutsで利用する事を容易にします。(サーブレットコンテナは2.3をサポートしている必要があります).
The source for these components is available in the Struts source
distribution. Binary distributions may also be made available with the Struts
download area. As optional components, these products have their own
release cycles.
これらのコンポーネントのためのソースは、Strutsソースディストリビューション内で利用可能です。バイナリディストリビューションも、Strutsダウンロードエリアで利用可能になるでしょう。オプションのコンポーネントとしてこれらのプロダクトは、自分のリリースサイクルを持っています。
Action Package Additions
The following new features have been added to the basic controller
framework [org.apache.struts.action]:
- The ActionServlet now provides support for modular Struts applications and
sports several new extension points.
- The new
ActionMessages class will support a superset of
the capabilities of ActionErrors, and will be useful as
a collection of general purpose messages, not just errors.
Action パッケージへの追加
下記の新しい機能がベーシックコントローラフレームワーク[org.apache.struts.action]に追加されました:
- ActionServletは現在、モジュール式のStrutsアプリケーションのサポートとと、いくつかの新しい拡張ポイントを提供しています
- 新しい
ActionMessages は、ActionErrors の能力のスーパーセットをサポートし、エラーだけではなく
一般的なメッセージの目的のコレクションに役に立つでしょう
Upload Package Additions
The following new features have been added to the file upload classes
[org.apache.struts.upload]:
CommonsMultipartRequestHandler: New class that implements
file upload using the Jakarta Commons FileUpload package.
Upload パッケージへの追加
下記の新しい機能がファイルアップロードクラス群
[org.apache.struts.upload]に追加されました:
CommonsMultipartRequestHandler: Jakarta Commons FileUploadパッケージを使い、ファイルアップロードを実装した新しいクラス
Util Package Additions
The following new features have been added to the utility classes
[org.apache.struts.util]:
LocalStrings: Correct message regarding replaceable parameter so that it does not append an extraneous character.
LabelValueBean: New class that defines a collection of name/value pairs that can be used with the <html:options> tag, and elsewhere.
MessageResources: Escape any single quote characters that are included in the specified message string.
computeParameters: Allow a transaction token to be the only parameter in .
RequestUtils: Change to encode ampersands when building a query string.
Util パッケージへの追加
下記の新しい機能がユーティリティクラス群[org.apache.struts.util]に追加されました:
LocalStrings: 置換可能なパラメータに関して,無関係な文字を追加しないようにメッセージを修正。
LabelValueBean:
<html:options>タグと他の所で利用可能な、名前/値のペアのコレクションを定義した新しいクラス。
MessageResources:
指定されたメッセージストリングに含まれている全てのシングルクォート文字をエスケープします
computeParameters:
パラーメータのためだけのトランザクショントークンを提供します
RequestUtils:
Change to encode ampersands when building a query string.
要求文字列を構築する場合のアンパサンドをエンコード変換します
Bean Taglib Package Additions
The following new features have been added to the
struts-bean custom tag library
[org.apache.struts.taglib.bean]:
<bean:write>: Add format, locale and bundle attributes to support formatting values according to current
user locale, format string from attribute or format string from string resources.
<bean:cookie>, <bean:header>, or <bean:parameter>: Correct the generated scripting variable type when tag is used with the "multiple" attribute.
<bean:message>: Added name, property, and scope attributes to the tag, so that the message source key can be obtained dynamically from a bean or bean property.
Bean タグライブラリパッケージへの追加
下記の新機能がstruts-bean カスタムタグライブラリ[org.apache.struts.taglib.bean]に追加されました:
<bean:write>:
format、locale と bundle属性のフォーマットを追加し、現在のユーザの locale や、 属性、もしくは文字列リソースからのフォーマット文字列にしたがって値のフォーマッティングをサポートします
<bean:cookie>, <bean:header>, or <bean:parameter>: "multiple" 属性とともに使われる場合に生成するスクリプトの変数の型を修正しました
<bean:message>: name、propertyとscope属性をタグに追加しました。よってメッセージリソースキーを、bean や、beanプロパティから動的に 取得することができます。
HTML Taglib Package Additions
The following new features have been added to the
struts-html custom tag library [org.apache.struts.taglib.html]:
<html:link>: Added 'action' attribute.
<html:options>: If the property specified by the 'property' attribute returns null, tag now throws an error message that indicates what the real problem is, rather than causing an NPE.
<html:option> and <html:options>: Added 'style' and 'styleClass' attributes.
<html:optionsCollection>: New tag providing a cleaner way of populating HTML options from a collection.
<bean:message>: Added 'name', 'property' and 'scope' attributes so that the message resource key can be obtained dynamically from a bean.
<html:messages>: New tag to iterate through a message collection in the new ActionMessages class.
ActionForm: Tag will now call reset() if it instantiates the ActionForm bean. This also requires that the bean instantiated by the tag to be an ActionForm subclass.
<html:image>: Added the 'align' attribute.
<html:img>: Added the mouse event attributes ('onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout').
SubmitTag, SelectTag, LinkTag.java, CheckboxTag, ButtonTag, ImageTag, RadioTag, and TextArea tags: Added indexed property.
HTML タグライブラリパッケージへの追加
下記の新しい機能が
struts-html カスタムタグライブラリ[org.apache.struts.taglib.html]に追加されました:
<html:link>: 'action' 属性の追加.
<html:options>: もし、'property'によるプロパティ属性が定義された場合の戻り値がnullなら、タグは現在、NPE(Null Pointer Exception)を引き起こすのではなく、本来の問題は何かを表示したエラーメッセージを表示します。
<html:option> and <html:options>: 'style' と 'styleClass' 属性を追加しました
<html:optionsCollection>: コレクションから HTML オプションをセットするための,より明快な方法を提供する新しいタグ。
<bean:message>: Beanからメッセージリソースキーをダイナミックに得る事が出来るように、'name', 'property' と'scope' 属性を追加しました。
<html:messages>: 新しいActionMessagesクラス内のメッセージコレクションによって繰り返す新しいタグ
ActionForm: タグは現在、もし、ActionFormビーンのインスタンスならreset() を呼び出します。これには、ActionFormのサブクラスであり、タグによってインスタンス化されたビーンである事が必要です。
<html:image>: 'align' 属性の追加
<html:img>: マウスイベント属性('onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout')の追加
SubmitTag, SelectTag, LinkTag.java, CheckboxTag, ButtonTag, ImageTag, RadioTag, and TextArea tags: indexed プロパティの追加
Logic Taglib Package Additions
The following new features have been added to the
struts-logic custom tag library [org.apache.struts.taglib.logic]:
<logic:empty> and
<logic:notEmpty>: New tags that are similar to
<logic:present> and
<logic:notPresent> except for the treatment of
empty strings.
Logic タグライブラリパッケージへの追加
以下の新しい機能をstruts-logic カスタムタグライブラリ[org.apache.struts.taglib.logic]に追加しました:
<logic:empty> と
<logic:notEmpty>:
新しいタグは空のストリングの扱いという事以外は
<logic:present> と
<logic:notPresent> に似ています
Template Taglib Package Additions
The following new features have been added to the
struts-template custom tag library
[org.apache.struts.taglib.template]:
Template タグパッケージへの追加
以下の新しい機能をstruts-template カスタムタグライブラリ
[org.apache.struts.taglib.template]に追加しました:
Documentation Additions
The following new features have been added to the Struts Documentation
application (and corresponding contents on the Struts web site):
- Version Differences: New section in Release Notes to link to the JavaDocs for all Struts classes and members added or changed between versions.
- FAQ/HowTos: New documentation category organizes our FAQs and example-driven howTos.
New HowTos include "Building Applications", "Using SSL", and using Struts with Eclipse or NetBeans.
- User Guide Preface: New section to overview the enabling technologies behind Struts.
- Developer Guides: Added "cover page" to guides. These then link to the Package Descriptions and the API guides.
- HTML tag documentation: expanded to cover using indexed properties with iterate.
- Site Menu: Removed separate links to taglib documentation, since these are now in the Developer Guide.
- Newbie FAQ: The questions most likely to be asked by new developers using Struts. Still under development.
- Kickstart FAQ: The questions most likely to be asked when selecting Struts.
- 1.0 JavaDoc: Added archival copy to web site for future reference.
- The UserGuide "Building" pages: General revisions to reflect new features and current practices.
- Installation: Updated instructions for SilverStream and Resin. Add installation notes for Jetty. Added RexIP to list of nominal containers.
- JavaDocs: New
@since Struts 1.1 tag to indicate new packages, classes, and members added after the Struts 1.0.x version
ドキュメントへの追加
下記の新しい機能がStrutsドキュメントアプリケーション(と対応するStruts Webサイト)に追加されました:
- Version Differences:リリースノート内の新しいセクションは、バージョン間の全てのStrutsクラスとメンバへの追加または変更のJavaDocへのリンクです
- FAQ/HowTos:
新しいドキュメントカテゴリは、私たちのFAQと例題に基ずくハウトゥーから構成されています。新しいハウトゥーは、“アプリケーションの作成”、“SSLを使う”とEclipse、NetBeansでStrutsを使うを含んでいます
- User Guide Preface:
新しいセクションは、Strutsを支持する有効なテクノロジの概要です
- Developer Guides:
ガイドの表紙を追加しました。パッケージ記述とAPIガイドにリンクしています
- HTML tag documentation: 繰り返におけるindexed属性の使い方をカバーするように拡張しました
- Site Menu: タグドキュメントへの個別のリンクを削除し、現在は開発者ガイド内にあります。
- Newbie FAQ: Strutsを使う新しい開発者から尋ねられるよくある質問と答え
- Kickstart FAQ: Strutsを選択した時に尋ねられるよくある質問と答え
- 1.0 JavaDoc: アーカイブの将来の参照用のwebサイトへのコピーを追加
- The UserGuide "Building" pages: 新しい機能と現在の実際を反映する一般的な変更の追加
- Installation:
Updated instructions for SilverStream and Resin. Add installation notes for Jetty. Added RexIP to list of nominal containers.
SilverStreamとResinへの指示の更新。Jettyへのインストールノートの追加。
コンテナの名前のリストにRexIPを追加
- JavaDocs: Struts 1.0.xバージョン以降の新しいパッケージとクラスとメンバに新しいタグ
@since Struts 1.1を追加