try this code
int pageNo = 1;
if (request.getParameter("pageNo") != null) {
pageNo = Integer.parseInt(request.getParameter("pageNo"));
}
instead of
int pageNo=Integer.parseInt(request.getParameter("pageNo"));
Error is caused due to at first when your servlet load there is no value for
pageNo
varialble