1 请问JSP的form表单post提交后为什么还是停留在原JSP页面corp_infos上?为什么不能重定向到别的JSP上corp_infos_final?
@At("/companyInfoSaving")
public View companyInfoSaving(@Attr(Auth.FRONT_KEY)Auth me,@Param("::data.") Enterprise en)
{
if (this.isPost())
{
en.mid=me.id;
daoHelper.update(en);
this.assgin("enterprise", en);
}
else
{
Enterprise enO = daoHelper.find(me.id, Enterprise.class);
this.assgin("enterprise",enO);
}
return this.getMemberView("corp_infos_final"); //无效,返回后仍然停留在原JSP页面corp_infos
}
/**
* 公司提交信息
* @param me
* @return
*/
@At("/companyInfo")
public View companyInfo(@Attr(Auth.FRONT_KEY)Auth me){
Enterprise enO = daoHelper.find(me.id, Enterprise.class);
this.assgin("enterprise",enO);
return this.getMemberView("corp_infos");
}
2 form表单中除了大量用户输入的数据外,还包含要提交的文件,请问文件能与输入的数据一起提交吗
<th>所在地:</th>
<td><input type="text" class="money2" name="data.address" value="${enterprise.address}"/></td>
</tr>
<tr>
<th>证件号:</th>
<td>
<input type="text" class="money2" name="data.certificates" value="${enterprise.certificates}"/><span class="cor9f9">营业执照注册号</span>
<span class="Validform_wrong"></span>
</td>
</tr>
<tr>
<th>营业执照:</th>
<td>
<div class="file-box">
<!-- <form target="hideWin" enctype="multipart/form-data" method="post"
action="" ftype="valid" ajax="true"> -->
<input type="file" name="Filedata" class="yyzzfile" id="fileField2" onchange="document.getElementById('textfield2').value=this.value" />
<input type="button" class="yyzzbtn" value="上传证件扫描件" />
<input type="text" name="data.license" id="textfield2" class="yyzztxt" value="上传图片大小不超过3M" disabled="disabled" />
<a ftype="submit" hidefocus="true">
<input type="button" ajaxSubmit="" class="yyzzbtn" value="上传证件扫描件" /></a>
<!-- </form> -->
</div>
</td>
</tr>
<tr>
<th>法定代表人:</th>
<td>