This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
then in the servlet or JSP ..request.getParameter("mptest") would give you the file path being uploaded. then you can use request.setAttribute or session.setAttribute based on the scope to carry the path value to different resources.
oh correct request.getParameter() doesnot work in newer browsers as Bear Bibeault said.You have to parse request.getInputStream or you can make use of one of apache commons fileUpload utils or com.oreilly.servlet.MultipartRequest APIS