Solo JSP, file = upload. jsp
<form method="post" enctype="multipart/form-data">
<input type=file name=file1>
<input type=submit>
</form>
<%
if (request.getContentType()==null) return;
<... your upload code, whether this is Apache Commons or straight JSP...>
%>
<% out.println("File has been uploaded."); %>