站内搜索: 请输入搜索关键词
当前页面: 图书首页 > JavaServer Pages, Second Edition

JavaServer Pages, Second Edition

[ directory ] Previous Section Next Section

6.7 Tags Learned in This Chapter

sql:query Perform a query against a database
Parameters:
    dataSource: A string specifying how to connect to the database
    sql: The SQL to run; may contain parameters to be filled in, indicated by 
    question marks
    var: The name of the variable in which to store the results
Body:
    sql:param tags
    sql:update Update, create, or delete data from a database
Parameters:
    dataSource: A string specifying how to connect to the database
    sql: The SQL to run; may contain parameters to be filled in, indicated by 
    question marks
    var: The name of the variable in which to store the results
Body: sql:param tags

sql:param Provide a parameter to SQL in a sql:query or sql:update tag
Parameters:
    value: The value to use; may be a script
Body: None

    [ directory ] Previous Section Next Section