InfoCenter Home > 4.2.2.3.7.2.3a: Example: JSP syntax: <tsx:dbquery> tag syntaxIn the following example, a database is queried for data about employees in a specified department. The department is specified using the <tsx:getProperty> to embed a variable data field. The value of the field is based on user input. <tsx:dbquery id="empqs" connection="conn" > select * from Employee where WORKDEPT='<tsx:getProperty name="request" property=request.getParameter("WORKDEPT") />' </tsx:dbquery>
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|