How to send resultset.getInt(1)
this value to another jsp page ,I am trying this but not working.
<td><a href="result.jsp?Id="+<%=resultset.getInt(1)%> ><%= resultset.getInt(1) %></a></td>
result.jsp
<%
String ss =request.getParameter("Id");
System.out.println("my value" + ss);
%>
I m getting ""
in result.jsp
.
Try this:
<td>
<a href=<%= "\"result.jsp?Id=" + resultset.getInt(1) + "\"" %> ><%= resultset.getInt(1) %></a>
</td>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With