I am trying to dynamically set the options tag by using the data from table.This is my code. \[code\] Select Branch:-<select name="codes"> <% while(r.next()){ %> <option value="http://stackoverflow.com/questions/15595968/<%=r.getString("code")%>"><%=r.getString("code")%></option> <% }r.close();s.close();con.close(); %> </select> \[/code\]When i am not adding the value of option it is working fine but when i add the value of option it gives me am exception.Please help