Formcoordinator ユーザーズガイド - ソフトウェア - Fujitsu
Formcoordinator ユーザーズガイド - ソフトウェア - Fujitsu Formcoordinator ユーザーズガイド - ソフトウェア - Fujitsu
} else { idb = new InputDataBuilder(is, request.getContentType()); } OutputDataBuilder odb = new OutputDataBuilder(request, "Shoseki-Kakunin"); // 電子フォーム表示モードに環境定義モードを指定します。 odb.setDisplayMode(odb.DISPMODE_ENV); // コンテントタイプを設定します。 response.setContentType(odb.getContentType()); // 項目制御情報を変更するので、その雛形を取得し、ItemAttributeAccess // オブジェクトを生成します。 ItemAttributeAccess iaa = new ItemAttributeAccess("項目制御情報"); // 電子フォームの入力項目をすべて読み取り専用にします。 iaa.setReadonly("氏名", ItemAttributeAccess.TRUE); iaa.setReadonly("従業員番号", ItemAttributeAccess.TRUE); iaa.setReadonly("所属", ItemAttributeAccess.TRUE); iaa.setReadonly("申請日", ItemAttributeAccess.TRUE); iaa.setReadonly("合計", ItemAttributeAccess.TRUE); // また、同じ項目の文字色を青色にします。 iaa.setColor("氏名", ItemAttributeAccess.BLUE); iaa.setColor("従業員番号", ItemAttributeAccess.BLUE); iaa.setColor("所属", ItemAttributeAccess.BLUE); iaa.setColor("申請日", ItemAttributeAccess.BLUE); iaa.setColor("合計", ItemAttributeAccess.BLUE); // 書籍記入欄は4行あるので、1~4まで4回繰り返します。 int cnt; String sCnt[] = new String [4]; sCnt[0] = "1"; sCnt[1] = "2"; sCnt[2] = "3"; sCnt[3] = "4"; for ( cnt = 0 ; cnt
odb.setXMLData(idb.getXMLData(), false); odb.setItemAttribute(iaa.getDocument()); // HTMLデータを生成し、Webブラウザへ送信します。 odb.write(response.getOutputStream()); } catch (Exception e) { e.printStackTrace(); } } } (4) Webアプリケーション環境定義ファイルを作成する Webアプリケーション環境定義ファイル(deployment descriptor)を作成します。 次に示すxmlファイルを作成し、「web.xml」という名前で保存します。 web.xmlファイルの内容 AppController AppController DispAppProg DispAppProg ApplyProg ApplyProg AppController /servlet/AppController DispAppProg /servlet/DispAppProg ApplyProg /servlet/ApplyProg (5) Webサーバに配置する (1)~(4)で作成したファイルをWebサーバに配置します。 配置するファイル 配置する場所 電子フォームのファイル ・ Shoseki.pmd ・ Shoseki.ovd C:¥Interstage¥APC¥sample¥tutorial¥eform /opt/FJSVfcdn/sample/tutorial/eform - 120 -
- Seite 81 und 82: 6. [許可]ボタンをクリック
- Seite 83 und 84: 3. [JavaScriptを有効にする]
- Seite 85 und 86: ・ クライアント印刷に使
- Seite 87 und 88: 第5章 システムの変更 こ
- Seite 89 und 90: 第6章 チュートリアル こ
- Seite 91 und 92: 2. 作成した電子フォーム
- Seite 93 und 94: (5) Webサーバに配置する (1)
- Seite 95 und 96: ・ ステップ1で使用した電
- Seite 97 und 98: public class Step2_2 extends HttpSe
- Seite 99 und 100: →Webページが表示されま
- Seite 101 und 102: Webアプリケーションに
- Seite 103 und 104: 配置するファイル 配置す
- Seite 105 und 106: ■このステップの概要 Web
- Seite 107 und 108: 1. OutputDataBuilderオブジェク
- Seite 109 und 110: 配置するファイル 配置す
- Seite 111 und 112: 4. それぞれのテキスト項
- Seite 113 und 114: HttpServletResponse response) throw
- Seite 115 und 116: servlet/Step5_1 Step5_2 /servlet/
- Seite 117 und 118: 3. データを入力して、[送
- Seite 119 und 120: 6. 「Step6」という名前で保
- Seite 121 und 122: import javax.servlet.http.HttpServl
- Seite 123 und 124: 配置するファイル 配置す
- Seite 125 und 126: 6.8 まとめ:電子フォームを
- Seite 127 und 128: この電子フォームのサン
- Seite 129 und 130: (3) Webアプリケーションを
- Seite 131: コンテントタイプを設定
- Seite 135 und 136: (8) 動作を確認する 1. Webブ
- Seite 137 und 138: 6. [OK]ボタンをクリックし
- Seite 139 und 140: 入力データをXmlDataAccessオ
- Seite 141 und 142: ・ 読み込み機能を利用し
- Seite 143 und 144: 第8章 別ウィンドウ連携機
- Seite 145 und 146: ◆ 別フレームHTMLを表示し
- Seite 147 und 148: 3. サーバに配置して確認
- Seite 149 und 150: (1) 電子フォームを作成す
- Seite 151 und 152: ・ サンプル使用方法の格
- Seite 153 und 154: ・ サンプル使用方法の格
- Seite 155 und 156: 注意 ・ データの保存およ
- Seite 157 und 158: 注意 ・ データの保存およ
- Seite 159 und 160: 3. ファイルの場所とファ
- Seite 161 und 162: 9.5.2 カレンダーを使用し
- Seite 163 und 164: ・ 汎用表示モードの場合
- Seite 165 und 166: 属性 有効/無効 備考 日本
- Seite 167 und 168: 10.3.3 共通イベント処理の
- Seite 169 und 170: 改善後 FUNC3(); } ・ ドロッ
- Seite 171 und 172: 第11章 セキュリティにつ
- Seite 173 und 174: ・ インターネットで配布
- Seite 175 und 176: 付録A トラブルシューティ
- Seite 177 und 178: 目次 トラブルの内容 A.1.1.
- Seite 179 und 180: ◆ 標準表示モード 原因1 F
- Seite 181 und 182: 対処2 原因3 ・ Formcoordinator
odb.setXMLData(idb.getXMLData(), false);<br />
odb.setItemAttribute(iaa.getDocument());<br />
// HTMLデータを生成し、Webブラウザへ送信します。<br />
odb.write(response.getOutputStream());<br />
} catch (Exception e) {<br />
e.printStackTrace();<br />
}<br />
}<br />
}<br />
(4) Webアプリケーション環境定義ファイルを作成する<br />
Webアプリケーション環境定義ファイル(deployment descriptor)を作成します。<br />
次に示すxmlファイルを作成し、「web.xml」という名前で保存します。<br />
web.xmlファイルの内容<br />
<br />
<br />
<br />
<br />
AppController<br />
AppController<br />
<br />
<br />
DispAppProg<br />
DispAppProg<br />
<br />
<br />
ApplyProg<br />
ApplyProg<br />
<br />
<br />
AppController<br />
/servlet/AppController<br />
<br />
<br />
DispAppProg<br />
/servlet/DispAppProg<br />
<br />
<br />
ApplyProg<br />
/servlet/ApplyProg<br />
<br />
<br />
(5) Webサーバに配置する<br />
(1)~(4)で作成したファイルをWebサーバに配置します。<br />
配置するファイル 配置する場所<br />
電子フォームのファイル<br />
・ Shoseki.pmd<br />
・ Shoseki.ovd<br />
C:¥Interstage¥APC¥sample¥tutorial¥eform<br />
/opt/FJSVfcdn/sample/tutorial/eform<br />
- 120 -