不知道怎么去定义这个标题好,我还是说下我写这个的使用场景吧:
需求:需要从文件中读取数据作为条件,并且在web 网页中还需要携带其他的参数信息。
form表单的结构如:
<!-- 普通的参数信息 -->
<input type="text" name="参数1"/>
<input type="text" name="参数2"/>
<input type="text" name="参数3"/>
....
<!-- 还有参数需要在文件中读取 -->
<input id="fileToUpload" type="file" size="45" name="fileToUpload" class="input">
这个时候需要我们在上传文件的同时,也要把其他的参数一同带入,提交本次请求。
参考:http://www.cnblogs.com/linjiqin/p/3530848.html
我的需求处理:
<%@ page language="java"