index.jsp
<HTML> <HEAD> <TITLE>Uploading Files</TITLE> </HEAD> <BODY> <FORM ACTION="basic.jsp" METHOD="POST"> <INPUT TYPE="FILE" NAME="filer"> <BR> <INPUT TYPE="SUBMIT" VALUE="Submit"> </FORM> </BODY> </HTML>
basic.jsp
<HTML> <HEAD> <TITLE>Uploading Files</TITLE> </HEAD> <BODY> <H1>Uploading Files</H1> File name: <%= request.getParameter("filer") %> </BODY> </HTML>