I am new to netbeans with glassfish server.My html code looks like,
<html>
<body>
<form id="file_upload_form" method="post" enctype="multipart/form-data" action="upload.java">
<div style="float:center">
<center>
Select a file:
<input type="file" name="first" />
<input type="submit" name="button" value="upload" />
</center>
</div>
<center>
</br>
</br>
<iframe id="upload" style="background-color:white;" width=90% height=80%></iframe>
</center>
</form>
</body>
</html>
when the request is submitted,i want to store the uploaded file in drive(ex.c:/upload) and the iframe(id=upload) should display the files in folder(c:/upload). Does anyone know where I can find some sample code that shows how this is done?