#pragma section-numbers off
[[TableOfContents]]
= 概要 =
Java WEBアプリケーション開発のためのFrameWork
= URL =
http://jakarta.apache.org/struts/
= インストール =
[http://struts.apache.org/userGuide/installation.html The Struts Framework Project - Installation (1.1)]を参考にすれば良い。
[http://www.jajakarta.org/struts/struts1.0/ja/target/documentation/installation-tc.html The Struts Framework Project - Installation - Tomcat with Apache]
[http://oss.kk-ntc.co.jp/jpug/pukiwiki/pukiwiki.php?Struts%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB Strutsインストール - JPUG新潟]
== めも ==
{{{/usr/local/apache2/conf/workers2.properties}}}
{{{
[uri:/examples/*]
}}}
{{{/usr/local/tomcat/conf/server.xml}}}
{{{
}}}
== 周辺ツール ==
[http://home.earthlink.net/~dwinterfeldt/ Struts Validator]
[http://strutstestcase.sourceforge.net/ StrutsTestCase]
= 1.1の新機能の利用 =
== org.apache.struts.action.DynaActionForm ==
汎用{{{ActionForm}}}。struts-configのみの設定で{{{ActionForm}}}が作成可能。
たとえば、Name、Pass、msgBodyのinputの場合は以下の記述をstruts-configにする。
{{{
}}}
ただし、Actionには1.0から変更が必要。
{{{
String name = form.getName();
を
String name = form.get("Name");
}}}
のようにする。
== org.apache.struts.validator.DynaValidatorForm ==
汎用{{{ValidatorForm}}}。struts-configのみの設定で{{{ValidatorForm}}}が作成可能。
{{{
}}}
この場合エラーが発生するとinputの画面にもどります。
{{{
}}}
のようにすればエラー専用の画面にできます。
もどりのjspに
{{{
}}}
を記述しておけばそこにメッセージが出ます。Propertyファイルを作成しておいてください。
{{{
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
}}}
でメッセージがある場合だけerrors.headerを表示という事ができる。
http://www.freeml.com/message/struts-user@freeml.com/0000900
http://kklab.spub.chitose.ac.jp/~sugiyama/struts/
= エラー対処 =
== Missing message for key ==
struts-blankをそのまま実行してしまうとMissing message for keyが出ると思います。
struts-config.xmlのmessage-resourcesタグ内を編集します。
{{{
}}}
= 書籍 =
[[ASIN(4797323442 STRUTS・イン・アクション)]]
= 参考サイト =
[http://www.ingrid.org/jajakarta/struts/ Struts翻訳]
[http://homepage2.nifty.com/ymagic/struts/ Struts Fan]
[http://www3.coara.or.jp/~agt/struts/ 入門Struts]
[http://www-6.ibm.com/jp/developerworks/opensource/040723/j_os-ecstruts.html dW : Open source : Eclipse用Easy Strutsを使用したStruts開発]
[http://muimi.com/j/jakarta/struts/ Strutsメモ]
[http://www.infoscience.co.jp/technical/struts/ StrutsによるWebアプリケーション開発]
[http://www.jamesholmes.com/struts/console/ Struts Console]
[[ASIN(4797338210 StrutsによるWebアプリケーションスーパーサンプル第2版: 本: 高安 厚思(オープンストリーム勤務),西川 麗(電通国)]]
----
CategoryPrograming
CategoryJava