<% out.println("1"); out.println("2"); out.println("3"); .. .. .. out.println("1000"); %> If this page is sent to browser it displays whole content i.e., upto 1 to 1000 times it prints but in my case i want to display only 1 to 500 how can i do this ? Please, suggest me in this regard. :roll: