I have two jsp pages: search.jsp and update.jsp.
search.jsp
update.jsp
When I run search.jsp then one value fetches from database and I store that
Use below code for passing string from one jsp to another jsp
A.jsp
<% String userid="Banda";%> <% session.setAttribute("userId", userid); %>
B.jsp
<%String userid = session.getAttribute("userId").toString(); %> Hello<%=userid%>