WebSphere Application Server, Version 6.0.x   
             オペレーティング・システム: AIX , HP-UX, Linux, Solaris, Windows

             目次と検索結果のパーソナライズ化

tsx:userid および tsx:passwd タグ JavaServer Pages 構文 (非推奨)

<tsx:userid> および <tsx:passwd> タグでは、 ユーザー ID とパスワードを <tsx:dbconnect> タグにハードコーディングする必要はありません。

非推奨の機能 (Deprecated feature): JavaServer Pages (JSP) エンジンの tsx タグのサポートは、WebSphere Application Server バージョン 6.0 では非推奨です。tsx タグを使用する代わりに、 JavaServer Pages 標準タグ・ライブラリー (JSTL) の同等のタグを使用してください。 depfeat

<tsx:userid> と <tsx:passwd> タグを使用して、 その値に対するユーザー入力を受け入れ、そのデータを要求オブジェクトに追加します。 要求オブジェクトへのアクセスは、JSPEmployee.jsp の例のように、 データベースへの接続を要求する JavaServer Pages (JSP) ファイルを用いて行うことができます。

<tsx:userid> および <tsx:passwd> タグは、<tsx:dbconnect> タグ内で使用する必要があります。

このセクションでは、<tsx:userid> および <tsx:passwd> タグの構文について説明します。

<tsx:dbconnect id="connection_id"
    <font color="red"><userid></font>
    <tsx:getProperty name="request" property=request.getParameter("userid") />
    <font color="red"></userid></font>
    <font color="red"><passwd></font>
    <tsx:getProperty name="request" property=request.getParameter("passwd") />
    <font color="red"></passwd></font>
    url="protocol:database_name:database_table"
    driver="JDBC_driver_name"> 
</tsx:dbconnect>

各部の意味は、次のとおりです。




関連概念
JavaServer Pages
関連タスク
インストール済みオプション・パッケージの使用
共用ライブラリーの管理
関連資料
Web アプリケーション: 学習用リソース
参照トピック    

ご利用条件 | フィードバック

最終更新: Jan 22, 2008 12:07:38 AM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/rweb_jpass.html