send value from one jsp to another jsp using href
java, jsp
Solution
Try this:
<td>
<a href=<%= "\"result.jsp?Id=" + resultset.getInt(1) + "\"" %> ><%= resultset.getInt(1) %></a>
</td>
Problem
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`.