i need to compare a DB record to a variable inside a JSP page. Whenever i use the statement: String s = resultSet.getString("columnName"); it results to "no data found", but when i do <%= resultSet.getString("columnName")%>...it prints the value. pls help...
posted 12 years ago
You cannot use recordset variable more than one time if you have not specified the scrollable resultset.So you put the value of resultset in a variable and compare that variable with any other variable.