943,937 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 1525
  • JSP RSS
Jun 7th, 2007
0

JSP -- not enough session space?

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
uninvitedm is offline Offline
5 posts
since May 2007
Jun 8th, 2007
0

Re: JSP -- not enough session space?

The page not found error is normally thrown when the container fails to find the file. It AFAIK, is in no way related to the session space since the session is limited by the amount of physical memory your server machine has.

Without more code or explanation, it would be difficult to be of any further help.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Jun 10th, 2007
0

Re: JSP -- not enough session space?

the files themselves aren't stored in the session, only references to the objects containing them are.
You could of course run out of server memory causing the server to crash.
More likely you're just running into timeouts causing the browser to think the server isn't there.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: HI problem in JSTL tags
Next Thread in JSP Forum Timeline: <html:button>





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC