<% if (request.getContentLength()==-1) { %> <FORM ACTION="abc.jsp" METHOD=POST> Name: <INPUT NAME="name" SIZE=32 MAXLENGTH=32 > Enter your e-mail: <INPUT NAME="email" > <BR> <INPUT TYPE=SUBMIT NAME="done" VALUE="done" > <BR> </FORM> <% } else { %> <% out.println(request.getParameter("name")); //end_java } %>