hi, i am having trouble when i upload file and sending multipart request into servlet, i can not get session variable at same time. session var is definitely already setup, because i can get this session var when i am doing normal request.
this is more less code how do i get session var :
hi let say, session var is already set on during login request... and i'm able to get this session var, all over servlet in normal request on my application, now my situation here, i need to upload file, upload file request is being sent to servlet. And there is no problem in this area. The problem comes when i upload file, i need those session var... am i making sense here ?
My question is simple, is it possible to get session var from multipart request from HttpServletRequest instance ?
Hi Bear Bibeault,
does my previous explanation is not enough to explain situation here?
ok let me paste some of code :
during successful login i set session var
and this session var is being used on all page over application, and i able to get this session var on struts action i made, problem comes when i upload file using struts action that i made, i couldnt get this var. the code i use to get this session var is :
please let me know if i am missing something here ?