Register the servlet in the web.xml file
In the jsp file access the url to get the passed in parameter and pass it to the servlet
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>File Upload</head>
<body>
<form enctype='multipart/form-data' method='POST' action="/appSubmission/DataUpload">
<p>
<input type="file" name="test"/>
</p>
<!--<Parameter myparam: <%= request.getParameter("pUserId") %> </parameter>-->
<%
//request.setAttribute("pUserId", "8539");
String first = request.getParameter("pUserId");
session.setAttribute("pUserId",first);
%>
<!--<p>
ID:
<input type="text" name="p_user_id" value='<%=request.getParameter("pUserId")%>'/>
</p>-->
<p>
<input type="submit" value="upload"/>
</p>
</form>
</body>
</html>