如何得到<input type="file">的路径
表单提交到jsp
如何在jsp得到文件路径
如何做文章配图 即同时实现表单提交和文件上传
------解决方案-------------------- <html:form action= "/newUserAction " onsubmit= "return checkSubmit(); " method= "post " enctype= "multipart/form-data ">
<table bgcolor= "white ">
<tr> <td> loginId: </td> <td> <html:text styleClass= "text " property= "loginId "/> </td> </tr>
<tr> <td> Your Name: </td> <td> <html:text styleClass= "text " property= "realName "/> </td> </tr>
<tr> <td> login Password: </td> <td> <html:text styleClass= "text " property= "loginPwd "/> </td> </tr>
<tr> <td colspan= "2 " align= "center " >
<html:submit value= "Submit " property= "frmSubmit "/>
<html:reset value= "Reset "/> </td>
</tr>
</table>
</html:form> </div>
这是我刚做的一个新增界面,用struts做的,和一般的jsp差不多,要上传文件在form中加入enctype= "multipart/form-data " 就行了,然后用smartupload上传就行了,如果有不明白的问题可以加我QQ联系,78329897