读书人

struts下传的跳转有关问题

发布时间: 2012-11-04 10:42:41 作者: rapoo

struts上传的跳转问题

在站内搜索了一下,没有找到类似的问题
1。页面只有上传的的form,包括:file框,text框,上传按钮。有时候能上传,有时不能上传成功,不成功提示http 500 dispatch[/photoManage]...错误,但是同样一个ActionForward为什么有时可以,有时不可以。
2。struts自带的token会不会影响上传呢?
3。是不是代码有问题,各位同胞们帮我看下,代码如下:

?

    if (photo_name == null && "".equals(photo_name)) { request.setAttribute("photoname", "isEmpty"); return new ActionForward("/searchPhoto.do?flag=manage"); }
    这段有问题,不是&&,而是||,要仔细啊,呵呵if (photo_name == null && "".equals(photo_name)) { request.setAttribute("photoname", "isEmpty"); return new ActionForward("/searchPhoto.do?flag=manage"); }
    这段有问题,不是&&,而是||,要仔细啊,呵呵哦,谢谢,
    但这个地方应该不是上传的问题的症结啊

读书人网 >软件架构设计

热点推荐