0
<%
String page=request.getParameter("page");
String sid=request.getParameter("id");
int id=Integer.parseInt(sid);
int i=BabyNameDao.update(obj,id);
if(i>0){
response.sendRedirect("viewbabynames.jsp?page="+page);
}else{
response.sendRedirect("viewbabynames.jsp?page="+page);
}
%>