参照: OC4Jファイル・アクセス・タグ・ライブラリ

ファイルをサーバーおよびデータベースにアップロードしたりそこからダウンロードするためのOC4Jタグ・ライブラリ

ライブラリ構文

<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/fileaccess.tld" prefix="fileaccess" %>

構文の使用方法:

イタリック・フォントで記載されているタグ属性には、ランタイム式を使用します。大カッコ([])内のタグ属性は必須ではありません。タグ・ボディを指定する場合は、そのタグで受入れ可能なタイプのコンテンツ(JSPコンテンツ)で指定します。

OJSPファイル・アクセス

名前 構文
httpDownload - サーバーからクライアントへファイルをダウンロードします。 <fileaccess:httpDownload
      source
      [sourceType]
      servletPath
      [connId]
      [scope ]
      [table]
      [prefixColumn]
      [fileNameColumn]
      [dataColumn]
      [fileType]
      [recurse] />

httpUpload - クライアントからサーバーへファイルをアップロードします。 <fileaccess:httpUpload
      destination
      [destinationType]
      [connId]
      [scope ]
      [table]
      [prefixColumn]
      [fileNameColumn]
      [dataColumn]
      [fileType]
      [overwrite] />

httpUploadForm - アップロードするファイルを入力するためのフォームを作成します。 <fileaccess:httpUploadForm
      formsAction
      [maxFiles]
      [fileNameSize]
      [maxFileNameSize]
      [includeNumbers]
      [submitButtonText] />