Passing variable to hidden field in JSP
Posted on 2007-03-29
I am trying to pass the variable 'address' from a database to a hidden field for use in a JSP page. I cannot get this to work. and the value always turns up null. Some of what I am doing is shown below. How do I get address into the hidden value field as shown below? Can someone help?
ResultSet schoolRs = stmt.executeQuery("SELECT STU_NAME, STU_ADDRESS, GRADE_LEVEL WHERE...
name = toolNameRs.getString("STU_NAME");
address = toolNameRs.getString("STU_ADDRESS");
level = toolNameRs.getString("GRADE_LEVEL");
This is where I am having problems...
<input type="hidden" name="hidden" Value=' " + address + " '>