开发工具与关键技术:java、myeclise 10
作者:清晨
撰写时间:6.28
Jsp中的代码
<form action="${ctx}/servlet/UserServlet?fun=test" method="post" enctype="multipart/form-data" >
<div class="img-box text-center">
<img width="120" height="180" id="imgtestimg" />
<input type="file" id="testimg" name="testimg" />
</div>
<input type="text" class="form-control" name="testname" />
<input type="submit" class="form-control" value="上传" />
</form>
<script type="text/javascript" src="${ctx}/js/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.form.js"><