<html> <form> Enter ID:<input type="text" name="id"> <% String id=request.getParameter("id"); int no=Integer.ParseInt(id); :%> </form> </html>