JAVA物理路径上传附件功能计算机等级考试
文章作者 100test 发表时间 2010:01:08 20:19:59
来源 100Test.Com百考试题网
public ActionForward add(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
TruckBaseForm tbf = (TruckBaseForm)form.
FormFile filename = tbf.getFilename().
String tempname = "" .
if ( filename.getFileName().trim().length()