sqlbean.setQuerystatement("Select * from 人事档案 where 性别 = ? and 民族 =? and 职务=?");
改成
sqlbean.setQuerystatement("Select * from 人事档案 where 性别 = '?' and 民族 ='?' and 职务='?'");
试试
改成
sqlbean.setQuerystatement("Select * from 人事档案 where 性别 = '?' and 民族 ='?' and 职务='?'");
试试
第一:对于字符串的比较,最好不要使用等号。因为很有可能导入空格,造成错误。最好采用like加统配符做近似比较。
第二:看看Web服务器的日志,通常能够找到出错的原因。