javaEE 传递到servlet里的 session 与jsp里的不匹配不一致? spring MVC 未解决


id string table

上传视频文件 登录的信息都没有了 。这是使用uploadify

HttpServlet     protected void doGet(HttpServletRequest request,HttpServletResponse response)  参数转过来的

9260 StandardSession[369D4D0D6D1C4270E48AE44198F95BCF] [VideofileName=1510647445968_v_null.mp4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]


下面这是对的。session额登录信息 Action    

private HttpServletRequest request;

Object o=this.getSession().getAttribute("VideofileName");

9214 org.apache.catalina.session.StandardSessionFacade@1094e22 [null, null, null, null, null, null, null, null, null, LOGIN_CODE=admin, randomCodeKey=FB5RE2, USER_NAME=admin, null, null, null, null]


关键代码:

首先登录,登录完后this.getSession().getAttribute("USER_NAME"); 有登录信息

[null, null, null, null, null, null, null, null, null, LOGIN_CODE=admin, randomCodeKey=FB5RE2, USER_NAME=admin, null, null, null, null]

点上传文件后转到FileUploadServlet里的doGet(request, response);处理,然后request.getSession();  得到的居然是空的,没有登录信息,只有在FileUploadServlet里上传视频保存的信息

[VideofileName=1510647445968_v_null.mp4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]

$(function(){
 		$("#videoFile").uploadify({  
		            'auto'           : true,  
		            'swf'            : '../common/uploadify/uploadify.swf', //调用flash库文件
		            'uploader'       : '../FileUploadServlet',//后台处理的请求  
		            'queueID'        : 'fileQueue',//与下面的id对应  
		            'queueSizeLimit' :1,  
		            'fileTypeDesc'   : 'mp4文件',//要声明文件类型  
		            'fileTypeExts'   : '*.mp4', //控制可上传文件的扩展名,启用本项时需同时声明fileDesc  
		            'multi'          : false,  
		            'buttonText'     : '请选择视频'  //flash图片样式
		}); 
 	});








评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小黄人软件

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值