• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP not able to submit FORM when there are more than 100 Check box

 
ujjval pandya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have one Form, which is having more than 100 checkboxes. When user selects them, it send the selection to the Servlet.
If i keep less Checkboxes then it is working fine. But If there are more than 100 or something checkbox on FORM, then page becomes Blank, and in log, i came to know that it is not at all reaching or calling to Servlet.

Any solution for this? How can I submit large no. of Objects like Check box using Form in JSP?
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your form definition. Are you using GET or POST. I suspect the former. That sure is a lot of checkboxes on one form.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sure is a lot of checkboxes on one form.

Indeed. If they're all user-visible at the same time, I'd expect a lot of usability problems.
 
ujjval pandya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bosun Bello wrote:Post your form definition. Are you using GET or POST. I suspect the former. That sure is a lot of checkboxes on one form.


FORM Defination:

<form name="userform" method="GET" action="/Ext/ExServlet" onSubmit="return fnAlert()">

I fetch details fromn server , display all in list using check box. When I submit Form, it send data to Servlet. THis Servlet will store details of useer selection and do the processing and call back this same page again.

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
method="GET"

That's the problem. GET is limited in the amount of data it can transmit; you're likely running into that limit.

But more importantly, form submits that alter data should never use GET, always POST; read up on what "idempotent" operations are if you don't understand why.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!