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

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

非推奨の機能 (Deprecated feature) 非推奨の機能 (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 >

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


トピックのタイプを示すアイコン 参照トピック



タイム・スタンプ・アイコン 最終更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rweb_jpass
ファイル名:rweb_jpass.html