jsp -- not enough session space

Hiya..

I have a jsp page to upload some files..

The session is used to store a Map ( session.setAttribute("filemap", filemap ) ). This map contains all the files to be uploaded. I have a file-input type, onChange the file here is added to the map. The map is stored in the session and when the page is reloaded, all files in the map can be displayed. Then the user clicks upload, and all the files are uploaded somewhere by some other code.

This works perfectly on my local machine/local host -- on the server however, i've encountered this problem...

When I browse for a file to upload and select it (with the file-input) and the page reloads - files of small file-size will work fine. The page will re-load, the item will be added to the map and displayed on the page. When I select a file with a larger file-size (even 200KB), the page shows a 'page not found' error when it reloads. I'm guessing the session on the server cant hold much space!

Does anyone know how I can get around this? Any help is appreciated!

Thanks

[1070 byte] By [uninvitedma] at [2007-11-27 6:46:40]
# 1

I wouldnt jump to that conclusion unless you see an exception as such in the server logs. Are you storing the File objects in the Map or a byte[] or what? If it is File objects, then the data is on disk and you wont run out of session memory... if byte[], then you could be right. I would debug carefully and see what the real problem is though...

Chris

mchyzer1a at 2007-7-12 18:19:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Hi thanks for the reply. I'll check out the server logs to see if it says anything. Yeah I'm storing the file objects in a Map. So when dealing with file objects the filesize shouldnt realistically make a difference in this case? I'm not 100% sure how it works but yeah, the file's arent uploaded until later with an inputstream etc...

uninvitedma at 2007-7-12 18:19:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...