Any one know how to use sql pattern matching with the <sql:query> tags?
I have the following simple query. After adding in the '%' tomcat wasen't too happy. Is there a work around? Thanks.
Code:<sql:query var="empDbInfo"> SELECT * from employees Where fname like = ? <sql:param value = "${param.fname}%"/> </sql:query>


. Is there a work around? Thanks.
Reply With Quote
I tried the following but still get a syntax error.
.
aram value = "${param.fname}"/> does not contain a value or contains a value that does not match a name in the db.
