Is there a limit on the length of the parameters & values submitted via post method on a form in JSP? If I have 2 fields and enter more than 2k in the first field, I am not getting the values of the second field with JSP.

Serge Knystautas

No, there is not a limit in the servlet/JSP spec, but there is a limit in HTTP. You can expect your URL to be truncated at 2048 characters long, so assuming you are passing your parameters using GET, you will see your first parameter's data around 2000 (possibly truncated), and not your second parameter at all.

Switch to a POST, and you should not have this problem anymore.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact