invoice3-setup.jsp
<%@ page contentType="text/html; charset=euc-jp" %>
<h1>シンプルな請求書ジェネレータ</h1>
<p>
このサンプルでは、ファイル システム データ モデルを処理するカスタム タグ ライブラリを使用して請求書を生成します。このデータ モデルでは、請求書を完成するのに必要な情報は、カスタム タグを実装する Java コンポーネントによりファイル システムから読み出されます。
バージョン 2 と同様、請求書発効日は、Emacs 時間管理システムにより生成されます。
<p>
<table align="left">
<tr>
<th align="right">発注元会社の選択:</th>
<td align="left">
<select name="clientCompany"
onchange="this.form.submit()">
<inv:foreach collectionName="clientCompanies" parameterName="clientCompany">
<option <inv:selectedItem /> value="<inv:getItem />"><inv:getItem /></option>
</inv:foreach>
</select>
</td>
</tr>
<% Boolean flag = (Boolean) session.getAttribute( "displayWeeks" );
if ( flag != null && flag.booleanValue() ) { %>
<tr>
<th align="right">週の選択 (週の終わりの日付) (yyyy-mm-dd): </th>
<td align="left">
<select name="weekEndingDate">
<inv:foreach collectionName="weeks" parameterName="weekEndingDate">
<option <inv:selectedItem /> value="<inv:getItem />"><inv:getItem /></option>
</inv:foreach>
</select>
</td>
</tr>
<tr><th></th><td><hr></td></tr>
<tr>
<th></th>
<td>
<input
type="submit" name="generateInvoice" value="請求書の生成"
onClick="invoiceForm.operation.value='GENERATE';this.form.submit()">
</td>
</tr>
<% } %>
</table>