April 16, 2010 at 12:33 PM
If you want to call servlet from another jsp i.e 'main.jsp', then you have to store the value of id in main.jsp using the following:
<input type="hidden" name="idvalue" value="<%=id%>">
In servlet, use the following code to retrieve value of id:
Hope that it will be helpful.