hello i am new to web project, i want to pass a file and also a text field to a servlet.I could upload file successfully but can't pass text variable into servlet ,it shows null when i try to print.
<div id="view2">
<b>Upload new Timetable</b>
<fieldset>
<h3> Choose File to Upload in Server </h3>
<form action="FileUploadHandler" method="post" enctype="multipart/form-data">
<input type="text" name="class_name" id=nam/>
<input type="file" name="file" />
<input type="submit" value="upload" />
</form>
</fieldset>
</div>