Welcome to javaranch,Prexa...
You can't retrieve a javascript variable directly from your
java code in a JSP.Because java code in your JSP is going to be executed before HTML is going to be interpreted with javascript at your web browser
However to access client-side data on the server, you have to send it from the client to the server,which can be done by using Ajex or jQuery.
document.getElementById("start").value=start;
document.getElementById("limit").value=limit;
But according to your example you are trying to access HTML form fields in your javascript(these might not be called as java variables(session,request..etc) because their values are interpreted at server side not at client side ).
int start = Integer.parseInt(request.getParameter("start"));
"start" is a parameter which should be received directly from
HTML Page/JSP/HTML in servlet submitted just before.from where "start" is coming?