I am sending two values by using Query string using both jsp and servlet pages.
I need to taking only one value from query string in jsp page working fine.
At the same time in servlet page when i click button i need to get the value from query string but here i am not getting the value from query string.
- which value is i need to took in jsp that value only it visible remaining value is appear in servlet page.
- how can i retrieving query string values in my servlet
In jsp i am using query string at the text box value code:
<input type="text" id="txtBatchName" name="txtBatchName" value="<%=request.getParameter("BatchId").replace("id=","")%>">
Servlet page:
if(request.getParameter("btnUpdate")!= null){
String Batch2=request.getQueryString();
String Id1=request.getParameter("Id");
}