send value from one jsp to another jsp using href

Nibha Jain :

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.

Azodious :

Try this:

<td>
    <a href=<%= "\"result.jsp?Id=" + resultset.getInt(1) + "\"" %> ><%= resultset.getInt(1) %></a>
</td>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Send data from one JSP file to another using Maven and Jetty

How to pass a value from one jsp to another jsp page?

passing value from one jsp file to another jsp file

How to send a value from one JSP page to another for each loop without a form?

How to send two values in a jsp with this href code to another jsp?

How to send any numbered value from jsp page to another java page in Spring/jsp

Passing the value of selected radio buttons from one jsp to another

Pass data from one jsp to another and display that jsp view

is redirecting from one jsp to another jsp bad practice? And if yes why?

Safe way to send value from jsp to javascript

How to pass a value from loop of JSP page to another JSP page?

Passing variable from JSP to another one

passing variables from one jsp page to another?

Automatically redirect from one JSP page to Another

Transferring collection object from one jsp to another

return string from one jsp to another

Send data from database to jsp using javaservlet

Send and include JSP dynamically in another JSP

How to send database retrieved values of one jsp page to another jsp page

Sending a value (id for example) from one servlet to another (jsp+servlet+mysql)

Getting values from JSP one to servlet one and sending it to another jsp and servlet

GET request from a jsp to controller and send a string value with action

How can I get value from one table row using checkbox ( JSP & HTML )?

How to insert date in mysql from three drop down list into one cell as a single value using jsp?

Problem with sending id from one jsp to another (update link)

how to transfer data from one jsp form to another

How to pass the values from one jsp page to another jsp without submit button?

how to redirect from jsp of one portlet to jsp of another portlet inside liferay module project in liferay 7

unable to send mail from a jsp webapp using java mail api