次の例で示すように、<uix:fileUpload>
タグおよび<bc4juix:InputRender>
タグを使用して、ブラウザからデータベースにファイルをアップロードする、HTMLファイルのアップロード・フォーム・フィールドを生成できます。次のように実行してください。
<uix:fileUpload>
タグのname属性を属性名として設定します。
<uix:form>
タグを設定して、Upload="true"
およびmethod="POST"
を使用します。
例1
<uix:form name="form1" method="POST" usesUpload="true" >
<uix:labeledFieldLayout >
<jbo:AttributeIterate id="dsAttributes" datasource="ds1" hideattributes="UixShowHide">
<bc4juix:LabelStyledText datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
<bc4juix:InputRender datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
</jbo:AttributeIterate>
<uix:submitButton name="jboEvent" text="Update" formName="form1"value="Edit" />
<uix:resetButton text="Reset" formName="form1" />
</uix:labeledFieldLayout>
<uix:formValue name="RowKey" value="<%= sRowKey%>" />
</uix:form>
例2
<uix:form name="form1" method="POST" usesUpload="true" >
<uix:styledText text="Picture" />
<uix:fileUpload name="Picture" />
<uix:submitButton name="jboEvent" text="Update" formName="form1" value="Edit" />
<uix:formValue name="RowKey" value="<%= sRowKey%>" />
</uix:form>
すべてのビジネス・コンポーネントinterMedia UIX JSPデータ・タグのリストは、次のトピックを参照してください。
リファレンス: ビジネス・コンポーネントUIX JSPタグ・ライブラリ
<bc4juix:Media>タグを使用した埋込みビデオまたはオーディオの再生
<bc4juix:Image>タグを使用した埋込みイメージの表示
<bc4juix:Link>タグを使用したinterMediaドメイン・オブジェクトのURLの生成
Copyright © 1997, 2004, Oracle. All rights reserved.