• Post Reply Bookmark Topic Watch Topic
  • New Topic

Practical limit on info from a form?

 
Eric Fletcher
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings all,
A question about form processing. Is there a practical limit to the amount of information the a request from a form can carry back to a servlet?
I have a page that lists a number of records, each with it's own check box for selection. The user needs the ability to check each record individually, or send all records at once, i.e. all the records will be checked.
I'm using:
String[] list = request.getParameters("checkboxes");
The issue seems to be that not all checked requests are being successfully sent back to the servlet. Right now, the page is diplaying 30 records, and if they are all selected, all 30 strings do not make it to the servlet. I'm using the strings to update a database, so I know they are not arriving intact, and sometimes the last string received is truncated.
I am curious, has anyone seen anything like this? My fix for now is to limit the page size, but that brings up it's own issues. Is there a limit that can be carried in a request, or a session, or does it really depend on site traffic and the VM?
Any feedback would be appreciated!
Thanks,
Eric
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric
How are you submitting the form? If your using the GET method then you are limited to a certain number of bytes - I can't remember how many right now. By using POST the data is sent in the header of the request and is virtually unlimited.
Hope that helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!