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.8: IBM extensions to JSP .91 syntax >
4.2.2.3.8.2: JSP .91 syntax: JSP tags for database access >
4.2.2.3.8.2.2: JSP .91 syntax: <USERID> and <PASSWD> tag syntax
4.2.2.3.8.2.2: JSP .91 syntax: <USERID> and <PASSWD> tag syntax
<dbconnect id="connection_id"
<font color="red"><userid></font><insert requestparm="userid"></insert><font color="red"></userid></font>
<font color="red"><passwd></font><insert requestparm="passwd"></insert><font color="red"></passwd></font>
url="protocol:database_name:database_table"
driver="JDBC_driver_name">
</dbconnect>
where:
- <INSERT>
This tag is a JSP tag for including variable data. See JSP tags for variable data.
- userid tag
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.
See the Login.jsp and the Employee.jsp examples for an illustration of how to set the USERID and PASSWD using parameters in the request object. The request parameters are set using an HTML form (Login.jsp). In the Employee.jsp, the values of the parameters are passed as hidden form values to the EmployeeRepeatResults.jsp.
- passwd tag
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.
|
|