InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
4.2.2.3: Overview of JSP file content >
4.2.2.3.7: IBM extensions to JSP syntax >
4.2.2.3.7.2: JSP syntax: Tags for database access >
4.2.2.3.7.2.2: JSP syntax: <tsx:userid> and <tsx:passwd> tag syntax

4.2.2.3.7.2.2: JSP syntax: <tsx:userid> and <tsx:passwd> tag syntax

<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>
where:
  • <tsx:getProperty>

    This syntax is a mechanism for embedding variable data. See JSP syntax for variable data.

  • userid

    This is a reference to the request parameter that contains the userid. The parameter must have already been added to the request object that was passed to this JSP file. The attribute and its value can be set in the request object using an HTML form or a URL query string to pass the user-specified request parameters.

  • passwd

    This is a reference to the request parameter that contains the password. The parameter must have already been added to the request object that was passed to this JSP. The attribute and its value can be set in the request object using an HTML form or a URL query string to pass user-specified values.

Go to previous article: JSP syntax: <tsx:dbconnect> tag syntax Go to next article: JSP  syntax: <tsx:dbquery> tag syntax

 

 
Go to previous article: JSP syntax: <tsx:dbconnect> tag syntax Go to next article: JSP  syntax: <tsx:dbquery> tag syntax