The following is the JSP code.
How the code can be modified such that the location of the file that is selected using "Browse" option must be passed to a java program named new.java
Please advise.
<form action="abc.jsp" method="post" enctype="multipart/form-data" name="form1" id="form1">
Upload File:
<input name="file" type="file" id="file"><br><br>
<input type="submit" name="Submit" value="Submit"/><br><br>
<input type="reset" name="Reset" value="Reset"/>
</form>
The html code above shows only the name of the file and not the location. And I dont even know how to pass the name of the file to java code itself.