50分求助!急!怎样获取表单参数拼接成sql语句?
我的jsp页面上有这样一个表单,是用来实现多条件查询的,但是不知道怎样将表单的参数获取到,并且拼接成一个完整的sql语句,还请高手帮忙看一下,最好给出代码,一定给分!
<form method= "POST " action= "sql.jsp " >
<input type= "hidden " name= "action " value= "compoundSearch ">
<input type= "button " name= "add_line " value= "增加条件 " onClick= "AddFieldInput() " >
<input type= "button " name= "add_line " value= "减少条件 " onClick= "DeleteFieldInput() " >
<input type= "button " value= "搜索 " name= "tj " onClick= "checkstrSQL(); " >
<!-- 该图层用于组合查询界面-->
<div id= "selectData ">
<div id= "selectItem " >
<table>
<tr>
<td align= "center " width= '40% '> 数据字段 </td>
<td width= '15% ' align= "center "> 操作符 </td>
<td width= '30% ' align= "center "> 取值 </td>
<td width= '15% ' align= "center "> 关系 </td>
</tr>
<tr bgcolor= "#FFFFFF ">
<td align= "center " width= '40% '>
<select id= "selectField " size= "1 " name= "selectField ">
<option value= "A.user_id "> 编号 </option>
<option value= "A.user_name "> 登录名 </option>
<option value= "DateField:A.reg_date "> 注册时间 </option>
</select>
</td>
<td align= &quo