How to make use of string variables in a query in jsp : <p>I have 2 string variables name and password. Now I have to use these variables in a query in where condition. How should I do it.
Suppose I want to execute a query-
"SELECT * FROM students WHERE students.name=name and student.pass=password"</p>

<p>I'm not able to do it. What is the right syntax for this query statement?</p>
